@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
|
@@ -21,18 +21,18 @@ Review UiPath solutions and individual artifacts for structural validity, qualit
|
|
|
21
21
|
## Critical Rules
|
|
22
22
|
|
|
23
23
|
1. **NEVER manually modify any files.** This skill is read-only. Exception: The command `uip agent refresh` is allowed and mandatory for low code agents, because it is not a manual modification, even when the command updates derived files -- do not restore or clean up those CLI-managed changes. If fixes are needed, identify them in the report and tell the user which skill to use (uipath-rpa, uipath-agents, uipath-maestro-flow, uipath-maestro-bpmn, uipath-api-workflow, uipath-coded-apps, uipath-platform, uipath-solution).
|
|
24
|
-
2. **ALWAYS run validation and Workflow Analyzer before manual review.** For RPA projects, run **both** `uip rpa validate` on every entry point AND `uip rpa build "<PROJECT_DIR>"` — `validate` catches structural / analyzer issues, `build` catches compile-time issues `validate` misses (unknown member names, invalid enum values, JIT failures). For low-code agents, run `uip agent refresh` and `uip agent validate`. Run `uip maestro flow validate` on flows, `uip maestro bpmn validate` on BPMN processes, `uip api-workflow validate` on API workflows. Report every Error
|
|
24
|
+
2. **ALWAYS run validation and Workflow Analyzer before manual review.** For RPA projects, run **both** `uip rpa validate` on every entry point AND `uip rpa build "<PROJECT_DIR>"` — `validate` catches structural / analyzer issues, `build` catches compile-time issues `validate` misses (unknown member names, invalid enum values, JIT failures). For low-code agents, run `uip agent refresh` and `uip agent validate`. Run `uip maestro flow validate` on flows, `uip maestro bpmn validate` on BPMN processes, `uip api-workflow validate` on API workflows. Report every command's Error / Warning / Info **counts** in the validation table, and a detail line for each Error and Warning — never a detail line for a clean result (Step 2d). A review without both `validate` AND `build` (for RPA) is incomplete and may ship broken member references.
|
|
25
25
|
3. **ALWAYS discover and classify before reviewing.** For solutions: classify every project before reviewing any individual one. For single projects: identify the project type and find the enclosing project directory before reviewing individual files.
|
|
26
26
|
4. **Report severity for every finding.** Use: **Critical** (blocks deployment), **Warning** (should fix), **Info** (improvement opportunity).
|
|
27
27
|
5. **Understand business context first.** Before evaluating optimization, ask or infer what the solution is trying to accomplish. A queue-based architecture is not "better" if the use case processes 5 items/day.
|
|
28
28
|
6. **Use `--output json`** on all CLI validation commands for programmatic parsing.
|
|
29
|
-
7. **Do not duplicate what validation commands catch.** Reference the validation output by rule ID and message — do not manually re-describe the same issue
|
|
29
|
+
7. **Do not duplicate what validation commands catch.** Reference the validation output by rule ID and message — do not manually re-describe the same issue, and do not restate what a command checks or that it passed. Every validation result is accounted for by its count in the validation table; Errors and Warnings additionally get a detail line.
|
|
30
30
|
8. **Cap the review at 30 minutes of analysis.** For very large solutions (10+ projects), provide a summary review with deep dives on the 3 highest-risk projects. Offer to review remaining projects if the user wants.
|
|
31
31
|
9. **Run the review CLI first, then apply the judgment catalog, for every agent encountered.** First run `uip agent review` (low-code) or `uip codedagent review` (coded) with `--output json` — it returns the deterministic findings (Step 2.5a). Then load the format-specific judgment catalog (`agents-lowcode-rules.md` or `agents-coded-rules.md`). Future phases add catalogs for RPA, flows, coded apps. This holds even when the skill loads mid-task: if review work already started before this skill loaded (e.g., a generic code-review pass produced findings), Step 2.5a and the guardrail Step 0 catalog fetch are still mandatory — run them, then merge the earlier findings into this skill's report format. Prior review output is never a substitute for the review CLI or the live catalog.
|
|
32
|
-
10. **Rule findings are authoritative as emitted.** Carry review-CLI
|
|
33
|
-
11. **Report rules that could not be applied** (missing tooling, missing file, review CLI unavailable, `status: deferred`) in a dedicated "Rules Skipped" subsection of the report — never silently skip.
|
|
34
|
-
12. **Never invent `rule_id` values.** Every `rule_id` cited in the report MUST appear verbatim in EITHER a loaded judgment-catalog file (`references/agents/agents-*-rules.md`) OR the `uip agent review` / `uip codedagent review` JSON output. `rule_id` is a stable contract identifier — consumers grep for it, dashboards aggregate by it, audits trace it. An invented identifier looks authoritative but cannot be looked up, doesn't aggregate, and produces a different name for the same observation on the next run. If you observe a real issue covered by neither source, the finding is still valid —
|
|
35
|
-
13. **Grade every agent project by the rubric — derived, never asserted.** For **agent projects** (phase 1), produce a letter grade (`A`/`B`/`C`/`D`/`F`, no `+`/`-`) per agent and overall, computed in Step 4.5 as `min(G_det, G_jud)`. **G_det is read from the review CLI's `Data.Grade` (Step 2.5a) — do not recompute it from finding counts.** G_jud you compute from judgment (
|
|
32
|
+
10. **Rule findings are authoritative as emitted.** Carry review-CLI `RuleId`, `Severity`, `Description`, `File`, and `SuggestedFix` into the report verbatim. Format the `Recommendation` as `<File>: <Description>. <SuggestedFix>`. Write judgment-catalog findings in the same format, with concise wording. Map severity to the report's bands: `error` → Critical, `warning` → Warning, `info` → Info. `judgment` severity rows default to Warning; the agent may escalate or de-escalate with reasoning logged in the finding's `description`. Do not re-rank otherwise.
|
|
33
|
+
11. **Report rules that could not be applied** (missing tooling, missing file, review CLI unavailable, `status: deferred`) in a dedicated "Rules Skipped" subsection of the report — never silently skip. Only report when the rule was intended, but could not be applied for some reason. Non-applicable rules are not skipped.
|
|
34
|
+
12. **Never invent `rule_id` values.** Every `rule_id` cited in the report MUST appear verbatim in EITHER a loaded judgment-catalog file (`references/agents/agents-*-rules.md`) OR the `uip agent review` / `uip codedagent review` JSON output. `rule_id` is a stable contract identifier — consumers grep for it, dashboards aggregate by it, audits trace it. An invented identifier looks authoritative but cannot be looked up, doesn't aggregate, and produces a different name for the same observation on the next run. If you observe a real, **critical** issue covered by neither source, the finding is still valid — surface it under Critical Findings **without** a `rule_id` (no `` `RULE_ID` `` backtick token in the line). **Only critical issues qualify** — drop an unrule'd Warning or Info. Both sources are agent-only, so this governs agent findings. **Before emitting the report, scan every cited `rule_id` and confirm it appears verbatim in a loaded catalog file or the review-CLI output; demote any that don't to `rule_id`-less findings.**
|
|
35
|
+
13. **Grade every agent project by the rubric — derived, never asserted.** For **agent projects** (phase 1), produce a letter grade (`A`/`B`/`C`/`D`/`F`, no `+`/`-`) per agent and overall, computed in Step 4.5 as `min(G_det, G_jud)`. **G_det is read from the review CLI's `Data.Grade` (Step 2.5a) — do not recompute it from finding counts.** G_jud you compute from the judgment findings (Step 2.5b + Step 3) by severity count. CLI findings already shaped `Data.Grade`; only judgment findings feed G_jud, so each finding lands in exactly one sub-grade. Show the binding constraint for every grade; a grade with no shown derivation is invalid (low-code reports omit the printed derivation). A security or data-integrity judgment Critical forces **F** regardless of design quality (hard gate, not a blend). The skill grade is always ≤ `Data.Grade` (min only lowers) — report both, never overwrite the CLI grade. Do **not** grade non-agent projects (RPA, flows, coded apps) — that rubric is a future phase. See [references/agents/agent-grading-rubric.md](references/agents/agent-grading-rubric.md).
|
|
36
36
|
14. **These paths are CLI-managed — `uip agent refresh` owns them:** `.agent-builder/`, `.local/build/`, and (low-code only) the root `entry-points.json`, regenerated from `agent.json`. Do not open their contents. Exclude them from classification, source-file selection, structural metrics, and manual checks. Raise a finding only when `refresh` fails to fix them — a pre-refresh mismatch is stale by construction, not a defect. Read low-code schemas from `agent.json` (`.inputSchema` / `.outputSchema`).
|
|
37
37
|
|
|
38
38
|
## Review Workflow
|
|
@@ -136,8 +136,8 @@ Record the language per project alongside the type (see solution table below).
|
|
|
136
136
|
| `project.json` with no `targetFramework` or `targetFramework: "Legacy"` (any expression language — Legacy C# exists) | RPA (Windows-Legacy) | [rpa-review-checklist.md](references/rpa/rpa-review-checklist.md) §10. Also recommend the user invoke `uipath-rpa` (Legacy mode) for Legacy-specific deep validation. Legacy is supported indefinitely in Studio LTS — do NOT flag as Critical. |
|
|
137
137
|
| `project.json` + both `.cs` and `.xaml` | RPA (Hybrid) | [rpa-review-checklist.md](references/rpa/rpa-review-checklist.md) |
|
|
138
138
|
| `project.json` + `.xaml` + DU packages in dependencies (`UiPath.IntelligentOCR.Activities`, `UiPath.DocumentUnderstanding.ML.Activities`) | RPA + Document Understanding | [rpa-review-checklist.md](references/rpa/rpa-review-checklist.md) + [du-review-checklist.md](references/document-understanding/du-review-checklist.md) |
|
|
139
|
-
| `agent.json` with `"type": "lowCode"` | Agent (Low-Code) |
|
|
140
|
-
| Python coded-agent project, including `agent.json` with `"type": "coded"` when present | Agent (Coded) |
|
|
139
|
+
| `agent.json` with `"type": "lowCode"` | Agent (Low-Code) | Rule catalog (Step 2.5): [agents-lowcode-rules.md](references/agents/agents-lowcode-rules.md) |
|
|
140
|
+
| Python coded-agent project, including `agent.json` with `"type": "coded"` when present | Agent (Coded) | Rule catalog (Step 2.5): [agents-coded-rules.md](references/agents/agents-coded-rules.md) |
|
|
141
141
|
| `*.flow` + `project.uiproj` with `"ProjectType": "Flow"` | Flow | [flow-review-checklist.md](references/flows/flow-review-checklist.md) |
|
|
142
142
|
| `*.bpmn` + `project.uiproj` with `"ProjectType": "ProcessOrchestration"` | Maestro BPMN | [bpmn-review-checklist.md](references/bpmn/bpmn-review-checklist.md) |
|
|
143
143
|
| `Workflow.json` (`document.dsl` + `do[]`) + `project.uiproj` with `"ProjectType": "Api"` | API Workflow | [api-workflow-review-checklist.md](references/api-workflows/api-workflow-review-checklist.md) |
|
|
@@ -160,7 +160,7 @@ For **Solution / Multi-project scope**, record all projects in a table:
|
|
|
160
160
|
find "<PROJECT_DIR>" \( -type d \( -name ".agent-builder" -o -path "*/.local/build" -o -name "node_modules" -o -name ".venv" -o -name "obj" -o -name "bin" \) \) -prune -o -type f -print 2>/dev/null | sort
|
|
161
161
|
```
|
|
162
162
|
|
|
163
|
-
The result is the authored-file set for Steps 2.5 and 3. Any path absent from it is out of scope: do not read it, cite it, or name it in
|
|
163
|
+
The result is the authored-file set for Steps 2.5 and 3. Any path absent from it is out of scope: do not read it, cite it, or name it anywhere in your output.
|
|
164
164
|
|
|
165
165
|
### Step 2 — Run Automated Validation and Workflow Analyzer
|
|
166
166
|
|
|
@@ -169,7 +169,7 @@ This step is **mandatory** and **non-negotiable**. You MUST run validation comma
|
|
|
169
169
|
- **Solution / Multi-project scope:** Run validation on **every project** in the solution. For each RPA project, validate **every entry point file**.
|
|
170
170
|
- **Single Project scope:** Run validation on the single project. For RPA projects, validate **every entry point file**.
|
|
171
171
|
|
|
172
|
-
|
|
172
|
+
Account for **all** results in the final review report: Error / Warning / Info counts in the validation table, plus a detail line per Error and Warning (Step 2d).
|
|
173
173
|
|
|
174
174
|
#### 2a. RPA Projects — Validate Every Entry Point
|
|
175
175
|
|
|
@@ -186,7 +186,7 @@ uip rpa validate --file-path "<ENTRY_FILE>" --project-dir "<PROJECT_DIR>" --outp
|
|
|
186
186
|
uip rpa build "<PROJECT_DIR>" --log-level Warn --output json
|
|
187
187
|
```
|
|
188
188
|
|
|
189
|
-
4. Collect **all** results from both commands — Errors, Warnings, and Info-level messages
|
|
189
|
+
4. Collect **all** results from both commands — Errors, Warnings, and Info-level messages (Info feeds the table's count; it gets no detail line)
|
|
190
190
|
5. If any entry point has `validate` errors **or** the project fails to `build`, the project is **not deployable**
|
|
191
191
|
|
|
192
192
|
> Do NOT validate only Main.xaml — validate every file listed in `entryPoints`. A project can have multiple entry points and errors in any of them block deployment.
|
|
@@ -241,12 +241,13 @@ For the review report, create a validation summary:
|
|
|
241
241
|
- [W-001] InvoiceProcessor/Main.xaml: ST-MRD-011 — Write Line activity used (use Log Message instead)
|
|
242
242
|
- [W-002] InvoiceProcessor/Main.xaml: ST-DBP-003 — Empty Catch block in TryCatch_1
|
|
243
243
|
- [W-003] InvoiceProcessor/Main.xaml: ST-NMG-001 — Variable 'temp_val' does not match naming convention
|
|
244
|
-
- [I-001] InvoiceProcessor: ST-ANA-009 — 12 file activities detected
|
|
245
244
|
- [W-004] ClassifierAgent: Missing tool description for 'lookup_customer'
|
|
246
245
|
```
|
|
247
246
|
|
|
248
247
|
> The validation results section is **required** in every review report. A review without automated validation is incomplete.
|
|
249
248
|
|
|
249
|
+
**Counts in the table; detail lines for Errors and Warnings only.** Every command's Error / Warning / Info counts go in the table — that is where Info is reported. Write a detail line only for an Error or a Warning. Never write a detail line that narrates a clean or successful result (`Status: Valid`, `Verdict: PASS`, `Score: 100`, "no drift", "0 issues", "N files regenerated", "already at schema X") — the `0` in the table already says it, and the Info column already carries the count.
|
|
250
|
+
|
|
250
251
|
### Step 2.5 — Run the Review CLI, then Apply the Judgment Catalog
|
|
251
252
|
|
|
252
253
|
After Step 2 validation and before manual checklist review, produce rule-ID-level findings in two passes: **first** the `uip agent review` / `uip codedagent review` CLI for the deterministic static checks, **then** the skill's judgment-only catalog for what code cannot decide reliably.
|
|
@@ -262,9 +263,9 @@ Run the review command for the agent type, once, capturing JSON:
|
|
|
262
263
|
| Low-code | `uip agent review "<PROJECT_DIR>" --output json` |
|
|
263
264
|
| Coded | `uip codedagent review "<PROJECT_DIR>" --output json` |
|
|
264
265
|
|
|
265
|
-
The CLI runs
|
|
266
|
+
The CLI runs the deterministic static checks its registry ships — structural/schema gates, placeholder cross-refs, eval-set structure and schema cross-refs, guardrail configuration validity, tool count, prompt length/platform — and returns them in rule format. Parse `Data.Issues[]`; each issue is `{RuleId, Category, Severity, Description, File, SuggestedFix}`. Carry each into the report **verbatim** — do not re-derive, rename, or re-rank. These rule IDs are authoritative as emitted by the CLI; they are **not** listed in the skill catalog.
|
|
266
267
|
|
|
267
|
-
> **Guardrail configuration is CLI-only — never eyeball it.** Whether a guardrail is well-formed (real validator, allowed scope, required/typed/legal parameters, valid custom-rule shape) is decided **only** by `uip agent review` — the `GUARDRAIL_*` and `GUARDRAIL_CUSTOM_*` rule IDs come from this command, never from reading `agent.json` by eye and never from the judgment catalog. So whenever the task involves checking / validating / diagnosing / fixing a guardrail, running the review CLI in this step is **mandatory** (use `--checks guardrails` if you only need the guardrail pass), and every `GUARDRAIL_*` finding it returns **must** appear verbatim in the report's
|
|
268
|
+
> **Guardrail configuration is CLI-only — never eyeball it.** Whether a guardrail is well-formed (real validator, allowed scope, required/typed/legal parameters, valid custom-rule shape) is decided **only** by `uip agent review` — the `GUARDRAIL_*` and `GUARDRAIL_CUSTOM_*` rule IDs come from this command, never from reading `agent.json` by eye and never from the judgment catalog. So whenever the task involves checking / validating / diagnosing / fixing a guardrail, running the review CLI in this step is **mandatory** (use `--checks guardrails` if you only need the guardrail pass), and every `GUARDRAIL_*` finding it returns **must** appear verbatim in the report's findings tables — do not replace it with a hand-written description of the problem. (The judgment catalog's `LC_GUARDRAIL_*` rules are the complement: they audit only guardrails the CLI found format-valid and recommend missing ones at Info — see Step 2.5b and [`references/agents/guardrails/guardrails-review.md`](references/agents/guardrails/guardrails-review.md).)
|
|
268
269
|
|
|
269
270
|
#### 2.5b — Apply the judgment catalog (reasoning the CLI cannot do)
|
|
270
271
|
|
|
@@ -282,15 +283,15 @@ The CLI runs every deterministic static check — structural/schema, placeholder
|
|
|
282
283
|
2. **Read each catalog file in full.** Every rule is judgment-form.
|
|
283
284
|
3. **Guardrails — apply the structured guardrail workflow** (project-type specific; Step 0 fetches the authored `uip agent guardrails catalog` — 30-min cache — plus the never-cached tenant-availability `uip agent guardrails list` → **Audit Mode** for existing guardrails + **Recommend Mode** for missing ones):
|
|
284
285
|
- **Low-code** (`agent.json`): when `guardrails[]` is non-empty or the agent matches a guardrail use case, apply [`references/agents/guardrails/guardrails-review.md`](references/agents/guardrails/guardrails-review.md). Emits `LC_GUARDRAIL_ACTION_INEFFECTIVE` / `LC_GUARDRAIL_MISAPPLIED` (defects, `judgment` band) and `LC_GUARDRAIL_RECOMMENDED` (Info, one per missing guardrail).
|
|
285
|
-
- **Coded** (SDK middleware / `@guardrail` decorators wired in the entry `.py`): when the entry source wires guardrails or the agent matches a use case, apply [`references/agents/guardrails/coded-guardrails-review.md`](references/agents/guardrails/coded-guardrails-review.md) (its Step 0
|
|
286
|
+
- **Coded** (SDK middleware / `@guardrail` decorators wired in the entry `.py`): when the entry source wires guardrails or the agent matches a use case, apply [`references/agents/guardrails/coded-guardrails-review.md`](references/agents/guardrails/coded-guardrails-review.md) (its Step 0 fetches the public Python SDK docs only when a finding must name Python classes not already visible in the agent source). Emits `CODED_GUARDRAIL_ACTION_INEFFECTIVE` / `CODED_GUARDRAIL_MISAPPLIED` (defects, `judgment` band) and `CODED_GUARDRAIL_RECOMMENDED` (Info). The CLI's deterministic `CODED_GUARDRAIL_WRONG_IMPORT` / `CODED_GUARDRAIL_TOOL_SCOPE_NO_TOOLS` / `CODED_GUARDRAIL_INVALID_CONTRACT` (Step 2.5a) are carried verbatim and **not** re-flagged here.
|
|
286
287
|
- Either way, if the guardrail catalog is unavailable, record the Audit-Mode rules under "Rules Skipped" and keep Recommend Mode's source-only detection.
|
|
287
288
|
4. **Apply each rule's `detection_method`:** read the named source material (system prompt, tool descriptions, eval datapoints, schemas) and reason about it. Emit a finding when the criteria hold; log the reasoning in the finding's `description`.
|
|
288
289
|
5. **Track skipped rules** with their reason (`status: deferred`, missing optional file, review CLI unavailable). Never silently skip.
|
|
289
|
-
6. **Verify rule_id provenance.** Before merging, confirm each cited `rule_id` appears **verbatim** in EITHER a loaded catalog file OR the `uip agent review` / `uip codedagent review` JSON output. Any finding whose `rule_id` matches neither is **demoted** to a `rule_id`-less Critical
|
|
290
|
-
7. **Merge findings into the Step 5 report**
|
|
290
|
+
6. **Verify rule_id provenance.** Before merging, confirm each cited `rule_id` appears **verbatim** in EITHER a loaded catalog file OR the `uip agent review` / `uip codedagent review` JSON output. Any finding whose `rule_id` matches neither is **demoted** to a `rule_id`-less Critical (the observation stays; the false citation goes) — or dropped when it is a Warning or Info. This enforces Critical Rule 12.
|
|
291
|
+
7. **Merge findings into the Step 5 report** — into the Critical / Warning / Info findings tables, one row per finding:
|
|
291
292
|
|
|
292
293
|
```
|
|
293
|
-
|
|
294
|
+
| <id> | `<rule_id>` | `<file>`: <issue>. <fix>. |
|
|
294
295
|
```
|
|
295
296
|
|
|
296
297
|
where prefix is `C-D-` (Critical), `W-D-` (Warning), or `I-D-` (Info) per the severity mapping in [`references/rule-format.md`](references/rule-format.md).
|
|
@@ -440,7 +441,6 @@ For deep-dive RPA reviews, also consult:
|
|
|
440
441
|
|
|
441
442
|
For common antipatterns per project type, also consult:
|
|
442
443
|
- RPA: [rpa-common-issues.md](references/rpa/rpa-common-issues.md)
|
|
443
|
-
- Agents: [agent-common-issues.md](references/agents/agent-common-issues.md)
|
|
444
444
|
- Flows: [flow-common-issues.md](references/flows/flow-common-issues.md)
|
|
445
445
|
|
|
446
446
|
### Step 4 — Evaluate Optimization
|
|
@@ -474,18 +474,18 @@ Read [references/architecture-assessment-guide.md](references/architecture-asses
|
|
|
474
474
|
Final grade = min(G_det, G_jud) where G_det = <review CLI>.Data.Grade
|
|
475
475
|
```
|
|
476
476
|
|
|
477
|
-
- **G_det (deterministic)** — **read it from the review CLI; do not recompute.** `uip agent review` / `uip codedagent review` (Step 2.5a) returns `Data.Grade` — that letter **is** G_det. (`Data.Issues[]` are still reported verbatim, but the grade comes from `Data.Grade`, not from tallying them.)
|
|
478
|
-
- **G_jud (non-deterministic)** — the only sub-grade you compute
|
|
477
|
+
- **G_det (deterministic)** — **read it from the review CLI; do not recompute.** `uip agent review` / `uip codedagent review` (Step 2.5a) returns `Data.Grade` — that letter, collapsed to its base letter (`C+` → `C`), **is** G_det. (`Data.Issues[]` are still reported verbatim, but the grade comes from `Data.Grade`, not from tallying them.)
|
|
478
|
+
- **G_jud (non-deterministic)** — the only sub-grade you compute, from the judgment-catalog (2.5b) + manual review (Step 3) findings.
|
|
479
479
|
|
|
480
480
|
CLI findings already shaped `Data.Grade` (G_det); only **judgment** findings feed G_jud — so each finding lands in exactly one sub-grade.
|
|
481
481
|
|
|
482
|
-
**G_jud
|
|
482
|
+
**G_jud score** — `100 − (15 × Criticals) − (4 × Warnings) − (1 × Infos)` over the judgment findings, floored at 0, looked up in the rubric's grade chart: `85–100`→A, `65–84`→B, `45–64`→C, `25–44`→D, `0–24`→F. Then cap: any unmitigated judgment Critical → at most D; security/data-integrity judgment Critical → F. Architecture-principle scores do not feed the grade.
|
|
483
483
|
|
|
484
484
|
**Overall Agent Grade:** single agent → its grade. Multiple agents → the **worst** per-agent grade. Never average grades.
|
|
485
485
|
|
|
486
|
-
Report the **binding constraint** in one line (e.g. "B — gated by G_det = CLI Data.Grade B;
|
|
486
|
+
Report the **binding constraint** in one line (e.g. "B — gated by G_det = CLI Data.Grade B; judgment clean (G_jud A)"). Since the skill grade is `min(Data.Grade, G_jud)`, it is always ≤ `Data.Grade` — report both; never overwrite the CLI grade. This goes in the Summary's `Agent Grade` line, and the letter alone is restated as `**Final grade: <A–F>**` on the report's last line (Step 5).
|
|
487
487
|
|
|
488
|
-
Full rubric,
|
|
488
|
+
Full rubric, grade chart, low-code section omissions, edge cases (no-PDD / CLI-unavailable / no-eval-set), CLI-grade alignment, and worked examples: [references/agents/agent-grading-rubric.md](references/agents/agent-grading-rubric.md).
|
|
489
489
|
|
|
490
490
|
### Step 5 — Produce the Review Report
|
|
491
491
|
|
|
@@ -496,7 +496,8 @@ Output a structured report in chat (do NOT create a file):
|
|
|
496
496
|
1. NEVER use internal workflow labels in the output. Forbidden terms: "Path A", "Path B", "Step 3a", "Step 0c", "Mismatch"/"Aligned" (use "one-to-one" / "one-to-many" / "unclear"), "disqualifying criteria", "verdict". The report is for the user, not a trace of the skill's internal workflow.
|
|
497
497
|
2. Do NOT create a separate "Unit of Work Analysis" section. The shape observation is a one-liner in the Summary. If the shape analysis produces a concern, it becomes a normal numbered finding.
|
|
498
498
|
3. Size metrics per file type use **activity / variable / node counts**, not "lines". Lines are meaningless for XAML and misleading for any file. See "Structural Metrics" table below.
|
|
499
|
-
4.
|
|
499
|
+
4. Low-code agent reviews omit some sections — see [agent-grading-rubric.md](references/agents/agent-grading-rubric.md#low-code-agent-reports--omit-these-sections).
|
|
500
|
+
5. Validation Status for Legacy projects says "Use `uipath-rpa` (Legacy mode) for Legacy-specific validation" — it does NOT say "Could not run" or "Failed". Legacy is supported indefinitely in Studio LTS; the `uip rpa` CLI targets Modern projects (Legacy mode uses the `uip rpa-legacy` CLI internally).
|
|
500
501
|
|
|
501
502
|
**Structural metrics to report (never "lines"):**
|
|
502
503
|
|
|
@@ -515,7 +516,7 @@ Output a structured report in chat (do NOT create a file):
|
|
|
515
516
|
|
|
516
517
|
### Summary
|
|
517
518
|
- **Overall Quality:** Good / Needs Improvement / Critical Issues
|
|
518
|
-
- **Agent Grade:** <A–F> — <verdict label> (<binding constraint, e.g. "
|
|
519
|
+
- **Agent Grade:** <A–F> — <verdict label> (<binding constraint, e.g. "gated by G_det = CLI Data.Grade B; judgment clean (G_jud A, 91)">) — *agent projects only; omit this line if the review has no agent projects*
|
|
519
520
|
- **Business Value:** <1-2 sentence description of what this automation does>
|
|
520
521
|
- **Review Scope:** Single project / Solution (N projects) / Multi-project repo (N executables + M libraries)
|
|
521
522
|
- **Project Types Found:** <list with type and language, e.g., "RPA (XAML, VisualBasic)", "Agent (Coded, Python)">
|
|
@@ -537,41 +538,41 @@ Output a structured report in chat (do NOT create a file):
|
|
|
537
538
|
|---|---|---|---|---|---|
|
|
538
539
|
| ... | ... | ... | ... | ... | ... |
|
|
539
540
|
|
|
540
|
-
**Validation Details:**
|
|
541
|
+
**Validation Details:** *(Errors and Warnings only — omit the heading entirely when there are none)*
|
|
541
542
|
- [V-E-001] <project>/<file>: **<rule-id>** — <message>
|
|
542
|
-
-
|
|
543
|
+
- [V-W-001] <project>/<file>: **<rule-id>** — <message>
|
|
543
544
|
|
|
544
545
|
> For Legacy projects, note: "Validation CLI (`uip rpa validate`, `uip rpa analyze`) targets Modern projects. Legacy validation runs through `uipath-rpa` Legacy mode (using the `uip rpa-legacy` CLI)."
|
|
545
546
|
|
|
546
|
-
###
|
|
547
|
-
|
|
548
|
-
| Project | Source | Errors | Warnings | Info | Skipped |
|
|
549
|
-
|---|---|---|---|---|---|
|
|
550
|
-
| ClassifierAgent | `uip agent review` + judgment catalog | 2 | 5 | 3 | 1 |
|
|
551
|
-
| TriageAgent | `uip codedagent review` + judgment catalog | 1 | 4 | 2 | 1 |
|
|
552
|
-
|
|
553
|
-
**From the review CLI (deterministic):**
|
|
554
|
-
- [C-D-001] `LOWCODE_MESSAGES_NO_USER` — `ClassifierAgent/agent.json` — messages[] has no role="user" entry. Fix: Add a `{"role": "user", "content": "..."}` message.
|
|
555
|
-
- [C-D-003] `FRAMEWORK_DEP_MISSING` — `TriageAgent/pyproject.toml` — langgraph.json present but uipath-langchain missing from [project] dependencies. Fix: Add `"uipath-langchain"` to [project] dependencies in pyproject.toml.
|
|
547
|
+
### Rules Skipped
|
|
556
548
|
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
**Rules Skipped (and why):**
|
|
563
|
-
- `uip codedagent review` — CLI not available in environment (deterministic checks not run)
|
|
549
|
+
| Rule / Command | Why |
|
|
550
|
+
|---|---|
|
|
551
|
+
| `uip codedagent review` | CLI not available in environment (deterministic checks not run) |
|
|
552
|
+
| `LC_GUARDRAIL_ACTION_INEFFECTIVE`, `LC_GUARDRAIL_MISAPPLIED` | Guardrails catalog unavailable (agent declares 2 guardrails, effectiveness unverified) |
|
|
564
553
|
|
|
565
|
-
>
|
|
554
|
+
> Only rules that were intended but could not be applied (Critical Rule 11). Group skips sharing one cause into a single row.
|
|
566
555
|
|
|
567
556
|
### Critical Findings (block deployment)
|
|
568
|
-
|
|
557
|
+
|
|
558
|
+
| ID | Rule | Recommendation |
|
|
559
|
+
|---|---|---|
|
|
560
|
+
| C-D-001 | `LOWCODE_SYSTEM_MESSAGE_MISSING` | `ClassifierAgent/agent.json`: `messages[0]` (system role) has empty content. Set `messages[0].content` to a non-empty system prompt. |
|
|
561
|
+
| C-001 | — | `ProjectA/Helper.cs`: Password argument uses `String`. Change the argument type to `SecureString`. |
|
|
569
562
|
|
|
570
563
|
### Warnings (should fix before production)
|
|
571
|
-
|
|
564
|
+
|
|
565
|
+
| ID | Rule | Recommendation |
|
|
566
|
+
|---|---|---|
|
|
567
|
+
| W-D-002 | `LC_PROMPT_ROLE_DEFINITION` | `ClassifierAgent/agent.json`: System prompt starts with task instructions before defining the agent's role. Open with: "You are an X that does Y." |
|
|
572
568
|
|
|
573
569
|
### Improvement Opportunities
|
|
574
|
-
|
|
570
|
+
|
|
571
|
+
| ID | Rule | Recommendation |
|
|
572
|
+
|---|---|---|
|
|
573
|
+
| I-D-001 | `LC_GUARDRAIL_RECOMMENDED` | `ClassifierAgent/agent.json`: `inputSchema.properties` contains `customer_email` and `ssn` without a PII guardrail. Add an Agent-scope PII guardrail with a block action. |
|
|
574
|
+
|
|
575
|
+
> One row per finding. Format each recommendation as `<file>: <issue>. <fix>.` Use the CLI's `File`, `Description`, and `SuggestedFix` verbatim; keep judgment and manual findings concise. Review-CLI, judgment-catalog, and manual-checklist findings all go in these three tables — do not split them into separate sections by source, and never list a finding in more than one table. `Rule` is `—` for a finding with no `rule_id` (Critical Rule 12).
|
|
575
576
|
|
|
576
577
|
### Per-Project Summary
|
|
577
578
|
| Project | Type | Language | Size | Validation | Quality | Grade | Key Findings |
|
|
@@ -603,9 +604,13 @@ Route each fix to the appropriate skill:
|
|
|
603
604
|
2. ...
|
|
604
605
|
|
|
605
606
|
### Optimization Notes
|
|
606
|
-
- <queue usage, bulk operations, retry/idempotency observations — e.g., partial-failure handling for one-to-many shapes
|
|
607
|
+
- <queue usage, bulk operations, retry/idempotency observations — e.g., partial-failure handling for one-to-many shapes. Only print section when optimization is relevant and applicable to the project or solution.>
|
|
608
|
+
|
|
609
|
+
**Final grade: <A–F>**
|
|
607
610
|
```
|
|
608
611
|
|
|
612
|
+
> **`Final grade:` is the report's last line — nothing follows it.** No notes, caveats, or commentary, inside the report or after it. It restates the Summary's `Agent Grade` letter so the grade stays visible at the tail of a long report; the two must always match. Letter only. Only print for agent projects.
|
|
613
|
+
|
|
609
614
|
**Finding severity labels (never "Mismatch"/"Aligned"):**
|
|
610
615
|
- Overall Quality: `Good` / `Needs Improvement` / `Critical Issues` (all project types)
|
|
611
616
|
- Agent Grade: `A` / `B` / `C` / `D` / `F` (no `+`/`-`) — agent projects only; see Step 4.5 and [agent-grading-rubric.md](references/agents/agent-grading-rubric.md)
|
|
@@ -640,8 +645,6 @@ This maps the letter to the verdict word only. The agent grade is `min(G_det, G_
|
|
|
640
645
|
| Review a solution structure (.uipx) | [solution-review-guide.md](references/solution-review-guide.md) |
|
|
641
646
|
| Review an RPA project (coded or XAML) | [rpa-review-checklist.md](references/rpa/rpa-review-checklist.md) |
|
|
642
647
|
| Find common RPA issues | [rpa-common-issues.md](references/rpa/rpa-common-issues.md) |
|
|
643
|
-
| Review an agent project | [agent-review-checklist.md](references/agents/agent-review-checklist.md) |
|
|
644
|
-
| Find common agent issues | [agent-common-issues.md](references/agents/agent-common-issues.md) |
|
|
645
648
|
| Review a flow project | [flow-review-checklist.md](references/flows/flow-review-checklist.md) |
|
|
646
649
|
| Find common flow issues | [flow-common-issues.md](references/flows/flow-common-issues.md) |
|
|
647
650
|
| Review a Maestro BPMN project (.bpmn) | [bpmn-review-checklist.md](references/bpmn/bpmn-review-checklist.md) |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Agent Review — Letter Grade (A–F)
|
|
2
2
|
|
|
3
|
-
How the review computes the letter grade for **agent projects** (low-code `agent.json` and coded `main.py`). Run this in **Step 4.5**, after agent validation (Step 2), the review CLI + judgment catalog (Step 2.5), manual review (Step 3)
|
|
3
|
+
How the review computes the letter grade for **agent projects** (low-code `agent.json` and coded `main.py`). Run this in **Step 4.5**, after agent validation (Step 2), the review CLI + judgment catalog (Step 2.5), and manual review (Step 3) — the grade is a function of those outputs, never a fresh judgment.
|
|
4
4
|
|
|
5
5
|
> Scope: agents only, matching the skill's phase-1 model (the Step 2.5 judgment catalog is agent-only today; RPA, flows, and coded apps are future phases). Do **not** grade non-agent projects with this rubric. When a solution mixes agents with other types, grade the agent projects and leave the others ungraded (note "grading: agents only, phase 1").
|
|
6
6
|
|
|
@@ -11,19 +11,19 @@ Final grade = min(G_det, G_jud)
|
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
- **G_det** — deterministic sub-grade. **Read it directly from the review CLI** — do not recompute it. `uip agent review` / `uip codedagent review` returns `Data.Grade`, the grade it assigns to its own deterministic checks. That letter **is** G_det.
|
|
14
|
-
- **G_jud** — non-deterministic sub-grade. Driven by judgment: the format-specific agent judgment catalog read in Step 2.5b
|
|
14
|
+
- **G_jud** — non-deterministic sub-grade. Driven by the judgment findings: the format-specific agent judgment catalog read in Step 2.5b and the manual review in Step 3.
|
|
15
15
|
|
|
16
|
-
`min()` means an agent cannot earn an A from a clean CLI grade if
|
|
16
|
+
`min()` means an agent cannot earn an A from a clean CLI grade if the judgment findings are heavy (G_jud gates it down), and cannot earn an A from clean judgment if the CLI's deterministic grade is poor (G_det gates it down). The grade is bounded by the weaker dimension. Because `min` only ever lowers the CLI grade, the **skill grade is always ≤ `Data.Grade`**.
|
|
17
17
|
|
|
18
18
|
## G_det — read it from the review CLI, never recompute
|
|
19
19
|
|
|
20
|
-
`uip agent review` / `uip codedagent review`
|
|
20
|
+
`uip agent review` / `uip codedagent review` runs the deterministic checks its registry ships (structural/schema gates, placeholder cross-refs, eval-set structure, guardrail configuration validity) and grades them. Read the grade from the JSON response and use it verbatim:
|
|
21
21
|
|
|
22
22
|
```
|
|
23
23
|
G_det = <response>.Data.Grade # e.g. "B"
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
The response also carries `Data.Verdict` (PASS/FAIL) and `Data.Score`; `Data.Grade` is the letter to use.
|
|
26
|
+
The response also carries `Data.Verdict` (PASS/FAIL) and `Data.Score`; `Data.Grade` is the letter to use. It ships `+`/`-` modifiers (`A+` … `F`) — collapse to the base letter (`C+` → `C`) so both sub-grades share the five-letter scale.
|
|
27
27
|
|
|
28
28
|
**Do not tally `Data.Issues[]` and re-derive a grade.** Recomputing duplicates work the CLI already did and risks drifting from the CLI's own grade — the exact inconsistency this design avoids. The deterministic findings (`Data.Issues[]`) are still carried into the report verbatim (Step 2.5a), but the *grade* comes from `Data.Grade`, not from counting them.
|
|
29
29
|
|
|
@@ -33,31 +33,39 @@ If `Data.Grade` is missing or the CLI is unavailable, see [Edge cases](#edge-cas
|
|
|
33
33
|
|
|
34
34
|
This is the only sub-grade the agent computes, because no CLI can grade it reliably.
|
|
35
35
|
|
|
36
|
-
**Step 1 —
|
|
36
|
+
**Step 1 — Penalty score.** Count the judgment findings by severity and deduct from 100, then look the score up in the [grade chart](#grade-chart):
|
|
37
37
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
| 3.5 – 4.49 | **B** |
|
|
42
|
-
| 2.5 – 3.49 | **C** |
|
|
43
|
-
| 1.5 – 2.49 | **D** |
|
|
44
|
-
| 1.0 – 1.49 | **F** |
|
|
38
|
+
```
|
|
39
|
+
G_jud score = 100 − (15 × Criticals) − (4 × Warnings) − (1 × Infos) # floor 0
|
|
40
|
+
```
|
|
45
41
|
|
|
46
|
-
**Step 2 — Judgment-finding cap.**
|
|
42
|
+
**Step 2 — Judgment-finding cap.** Two caps catch a blocking flaw the score understates:
|
|
47
43
|
|
|
48
44
|
- Any **unmitigated judgment Critical** caps G_jud at **D**.
|
|
49
45
|
- A judgment Critical with **security or data-integrity** impact (prompt-injection exposure, secret leak into tool args, no guardrail on a destructive tool) caps G_jud at **F**.
|
|
50
46
|
|
|
51
|
-
|
|
47
|
+
> Findings from the review CLI (`Data.Issues[]`) already shaped `Data.Grade` = G_det — do **not** also count them in G_jud. Only **judgment** findings (Step 2.5b catalog + Step 3 manual) feed G_jud. This keeps each finding in exactly one sub-grade.
|
|
48
|
+
|
|
49
|
+
The architecture-principle scores in [architecture-assessment-guide.md §4](../architecture-assessment-guide.md) inform the optimization review; they do **not** feed the grade.
|
|
50
|
+
|
|
51
|
+
## Grade chart
|
|
52
|
+
|
|
53
|
+
Score → letter, collapsed from the review CLI's own chart (`A+`/`A`/`A-` → `A`, and so on). Used for the G_jud lookup and for the `Data.Grade`-absent fallback below.
|
|
52
54
|
|
|
53
|
-
|
|
55
|
+
| Score | Grade |
|
|
56
|
+
|------:|-------|
|
|
57
|
+
| 85–100 | **A** |
|
|
58
|
+
| 65–84 | **B** |
|
|
59
|
+
| 45–64 | **C** |
|
|
60
|
+
| 25–44 | **D** |
|
|
61
|
+
| 0–24 | **F** |
|
|
54
62
|
|
|
55
63
|
## Final grade and rationale
|
|
56
64
|
|
|
57
|
-
`Final = min(G_det, G_jud)` where `G_det = Data.Grade`. Always report the **binding constraint** in one line so the grade is auditable:
|
|
65
|
+
`Final = min(G_det, G_jud)` where `G_det = Data.Grade`. Always report the **binding constraint** in one line so the grade is auditable (low-code omits it — see below):
|
|
58
66
|
|
|
59
67
|
```
|
|
60
|
-
Agent Grade: B — gated by G_det (CLI Data.Grade B).
|
|
68
|
+
Agent Grade: B — gated by G_det (CLI Data.Grade B). Judgment is clean (G_jud A, 91).
|
|
61
69
|
```
|
|
62
70
|
|
|
63
71
|
Map the letter to the verdict word (this is the only place the letter→word mapping lives; the bands that produce each letter live above / in the CLI):
|
|
@@ -74,53 +82,66 @@ Map the letter to the verdict word (this is the only place the letter→word map
|
|
|
74
82
|
- **Single-agent review:** the overall Agent Grade IS the agent's grade.
|
|
75
83
|
- **Solution with multiple agents:** the overall Agent Grade = the **worst** per-agent grade. A solution is only as deployable as its weakest agent — do not average grades. Non-agent projects do not contribute a grade (phase 1).
|
|
76
84
|
|
|
85
|
+
## Low-code agent reports — omit these sections
|
|
86
|
+
|
|
87
|
+
Low-code agent review (`agent.json`): omit entirely — no placeholder, no "not applicable" note.
|
|
88
|
+
|
|
89
|
+
| Section | Omit when |
|
|
90
|
+
|---|---|
|
|
91
|
+
| PDD Alignment | No PDD available |
|
|
92
|
+
| Per-Project Summary | Review scope is a single project, including a single project inside a solution |
|
|
93
|
+
| Grade derivation | Always — the `Agent Grade` line carries the letter and verdict label only: no binding constraint, sub-grades, or `Data.Grade` comparison |
|
|
94
|
+
| Optimization Notes | Always |
|
|
95
|
+
|
|
96
|
+
The `**Final grade: <A–F>**` last line still prints.
|
|
97
|
+
|
|
77
98
|
## Edge cases
|
|
78
99
|
|
|
79
100
|
| Situation | Handling |
|
|
80
101
|
|---|---|
|
|
81
|
-
| **`Data.Grade` absent** (older CLI returns only `Data.Verdict` / `Data.Score`) | Map what the CLI gives you: `Data.Verdict = FAIL` → G_det = F; otherwise
|
|
102
|
+
| **`Data.Grade` absent** (older CLI returns only `Data.Verdict` / `Data.Score`) | Map what the CLI gives you: `Data.Verdict = FAIL` → G_det = F; otherwise look `Data.Score` up in the [grade chart](#grade-chart). Note the substitution in "Rules Skipped". |
|
|
82
103
|
| **Review CLI unavailable** (no `agent review` / `codedagent review`) | No `Data.Grade` to read. Report the grade as **G_jud alone**, explicitly flagged: "G_det unavailable — review CLI not installed; grade reflects judgment only." Do not fabricate a deterministic grade by counting `agent validate` output. |
|
|
83
104
|
| **`uip agent validate` (Step 2) reports a blocking Error** not reflected in `Data.Grade` | A project that fails validation is not deployable — floor the final grade at **F** regardless of `Data.Grade`, and cite the validate Error as the binding constraint. |
|
|
84
105
|
| **No PDD available** | Business-logic alignment is ungraded. Compute the grade from technical quality only and add: "Grade reflects technical quality; business-logic alignment unverified (no PDD)." |
|
|
85
|
-
| **No eval set present** |
|
|
106
|
+
| **No eval set present** | Raise the eval-coverage gap as one judgment finding — do not restate it as several findings to force the score down. |
|
|
86
107
|
|
|
87
108
|
## Alignment with the review CLI's `Data.Grade`
|
|
88
109
|
|
|
89
110
|
Because **G_det = `Data.Grade`** and the final grade is `min(G_det, G_jud)`:
|
|
90
111
|
|
|
91
|
-
- The skill grade **equals** `Data.Grade` when G_jud ≥ `Data.Grade` (judgment
|
|
92
|
-
- The skill grade is **lower** than `Data.Grade` when G_jud is worse (
|
|
112
|
+
- The skill grade **equals** `Data.Grade` when G_jud ≥ `Data.Grade` (judgment findings do not drag it down).
|
|
113
|
+
- The skill grade is **lower** than `Data.Grade` when G_jud is worse (heavy judgment findings, a judgment Critical) — the skill adds the judgment dimension the CLI does not assess.
|
|
93
114
|
- The skill grade is **never higher** than `Data.Grade` (min only lowers).
|
|
94
|
-
- Report both, and state the gap in one line when they differ: "CLI Data.Grade A (deterministic checks); skill grade C — G_jud
|
|
115
|
+
- Report both, and state the gap in one line when they differ: "CLI Data.Grade A (deterministic checks); skill grade C — G_jud 62 over 9 judgment Warnings, 2 Infos."
|
|
95
116
|
|
|
96
117
|
## Determinism contract
|
|
97
118
|
|
|
98
119
|
- **G_det is reproducible because it is the CLI's deterministic grade** — same agent, same `Data.Grade`, every run. The skill does not recompute it.
|
|
99
|
-
- **G_jud is reproducible given the
|
|
100
|
-
- The grade is **derived, never asserted.** Every grade must trace to `Data.Grade` (G_det), the G_jud
|
|
101
|
-
- Do not introduce grade values outside `A` / `B` / `C` / `D` / `F`. No `+`/`-` modifiers, no `A*`, no numeric-only grade.
|
|
120
|
+
- **G_jud is reproducible given the judgment findings** — same findings at the same severities, same score, same letter.
|
|
121
|
+
- The grade is **derived, never asserted.** Every grade must trace to `Data.Grade` (G_det), the G_jud score, and the `min()` binding constraint. A grade with no shown derivation is invalid, except where the report omits derivation (low-code).
|
|
122
|
+
- Do not introduce skill grade values outside `A` / `B` / `C` / `D` / `F`. No `+`/`-` modifiers, no `A*`, no numeric-only grade.
|
|
102
123
|
|
|
103
124
|
## Worked examples
|
|
104
125
|
|
|
105
|
-
**Example 1 — clean CLI grade,
|
|
126
|
+
**Example 1 — clean CLI grade, few judgment findings.**
|
|
106
127
|
- G_det = `Data.Grade` = **B** (read from `uip codedagent review`).
|
|
107
|
-
- G_jud:
|
|
108
|
-
- Final = min(B,
|
|
128
|
+
- G_jud: 0 Criticals, 2 Warnings, 1 Info → 100 − 8 − 1 = 91 → **A**. No cap.
|
|
129
|
+
- Final = min(B, A) = **B — Good.** Binding: G_det.
|
|
109
130
|
|
|
110
|
-
**Example 2 — strong CLI grade, but
|
|
131
|
+
**Example 2 — strong CLI grade, but many judgment findings.**
|
|
111
132
|
- G_det = `Data.Grade` = **A**.
|
|
112
|
-
- G_jud:
|
|
113
|
-
- Final = min(A,
|
|
133
|
+
- G_jud: 0 Criticals, 12 Warnings, 4 Infos → 100 − 48 − 4 = 48 → **C**.
|
|
134
|
+
- Final = min(A, C) = **C.** Binding: G_jud — 12 Warnings on prompt, tool, and error-handling quality. A clean CLI grade does not rescue them.
|
|
114
135
|
|
|
115
|
-
**Example 3 —
|
|
136
|
+
**Example 3 — few findings, but a tool description leaks a secret into args.**
|
|
116
137
|
- G_det = `Data.Grade` = **A** (the CLI's regex did not catch this semantic leak).
|
|
117
|
-
- G_jud:
|
|
118
|
-
- Final = min(A, F) = **F.** Binding: G_jud security cap — a secret-leak Critical blocks deployment regardless of
|
|
138
|
+
- G_jud: 1 Critical, 1 Warning → 100 − 15 − 4 = 81 → **B**, but the Critical carries secret-leak (data-integrity) impact → cap at **F**.
|
|
139
|
+
- Final = min(A, F) = **F.** Binding: G_jud security cap — a secret-leak Critical blocks deployment regardless of the score.
|
|
119
140
|
|
|
120
|
-
**Example 4 — CLI grade diverges from skill grade.**
|
|
121
|
-
-
|
|
122
|
-
- G_jud:
|
|
123
|
-
- Final = min(A, C) = **C.** Report: "CLI Data.Grade A (deterministic); skill grade C — G_jud
|
|
141
|
+
**Example 4 — CLI grade diverges from skill grade, `+` collapsed.**
|
|
142
|
+
- `Data.Grade` = `A-` → collapse → G_det = **A**.
|
|
143
|
+
- G_jud: 0 Criticals, 9 Warnings, 2 Infos → 100 − 36 − 2 = 62 → **C**.
|
|
144
|
+
- Final = min(A, C) = **C.** Report: "CLI Data.Grade A- (deterministic); skill grade C — G_jud 62 over 9 Warnings, 2 Infos."
|
|
124
145
|
|
|
125
146
|
## Anti-patterns
|
|
126
147
|
|
|
@@ -128,6 +149,7 @@ Because **G_det = `Data.Grade`** and the final grade is `min(G_det, G_jud)`:
|
|
|
128
149
|
2. **Do not grade non-agent projects with this rubric.** It is agent-scoped (phase 1). RPA, flows, and coded apps get a grade when their rubric is authored.
|
|
129
150
|
3. **Do not let a deterministic blocker average away.** This is a hard gate (`min`), not a weighted blend — a security/data-integrity judgment Critical forces F regardless of `Data.Grade`.
|
|
130
151
|
4. **Do not double-count a finding.** CLI findings already shaped `Data.Grade` (G_det); only judgment findings feed G_jud.
|
|
131
|
-
5. **Do not invent `+`/`-` or numeric grades.** Five letters only: A / B / C / D / F.
|
|
152
|
+
5. **Do not invent `+`/`-` or numeric grades.** Five letters only: A / B / C / D / F. Quoting the CLI's raw `Data.Grade` (`A-`) alongside it is fine.
|
|
132
153
|
6. **Do not average per-agent grades** for the overall solution grade — take the worst.
|
|
133
154
|
7. **Do not restate the CLI's `Data.Grade` as the skill grade.** They differ whenever G_jud is lower; report both.
|
|
155
|
+
8. **Do not feed architecture-principle scores into the grade.** They inform the optimization review only; G_jud is a judgment-finding count.
|
|
@@ -47,6 +47,8 @@ One H2 section per checker class groups related rules for navigation. Every row'
|
|
|
47
47
|
| `CODED_EVAL_COVERAGE_GAP` | warning | evals | Registered evaluator never referenced by an eval set, OR a code path never exercised by any datapoint | Read evaluator configs + eval-set `evaluationCriterias` keys. Assess: is each evaluator config referenced by ≥1 eval entry? Symmetrically, read agent source — does each declared code branch (platform-vs-local, error handler, rejection route) get exercised by ≥1 eval input? Emit per concrete gap. file = evaluator config or source file. | Either add eval entries that reference the evaluator / exercise the path, or remove the unused config. |
|
|
48
48
|
| `CODED_EVAL_GROUND_TRUTH_MISLABELED` | warning | evals | Datapoint's expected class demonstrably contradicts input content | Read each datapoint's `.inputs` + `.expectedOutput` / `.expectedClass`. Assess: does the label unambiguously contradict input semantics (e.g., email body "I want to refund" labeled `expectedClass: "spam"`)? Borderline labels are eval-author judgment — skip. Emit on clear contradictions only. file = eval set JSON, element = datapoint id. | Correct the label, or split the datapoint into separate scenarios. |
|
|
49
49
|
| `CODED_EVAL_DATASET_SINGLE_CLASS` | warning | evals | Multiclass evaluator paired with ≥3-datapoint dataset where all labels are identical | Read evaluator types + eval set labels. Assess: is the evaluator multi-class shape (`uipath-multiclass-classification`, custom balanced-accuracy with `classCounts: {…}`)? AND does the dataset have ≥3 datapoints all sharing the same label? Skip when evaluator is single-class by design (`uipath-binary-classification` for one-class detection) or when dataset has <3 datapoints. file = eval set JSON. | Add datapoints with the other classes, or switch to `uipath-binary-classification` for one-class detection. |
|
|
50
|
+
| `CODED_EXTERNAL_CALL_NOT_MOCKABLE` | warning | evals | Function crossing an external boundary is not `@mockable()`, so evaluations need live dependencies | Read functions that cross an external boundary (UiPath SDK call, HTTP, database, queue, process invocation). Assess per function: is it decorated `@mockable()`? Emit when the project ships evaluations and a boundary function cannot be substituted, forcing eval runs against live services — flaky, slow, and unusable in CI. Skip pure-Python helpers, and skip projects with no evaluations. file = source file, element = function name. | Decorate each external-boundary function with `@mockable()` so evaluations can substitute a mock. |
|
|
51
|
+
| `CODED_EVAL_MOCK_CONTRACT_DRIFT` | warning | evals | Eval mock response contradicts the mocked function's declared return contract | Read the eval-set mock definitions (`mockito` type mocks, mock response fixtures) and the mocked function's signature — return annotation, Pydantic model, or `TypedDict`. Assess per mock: do the payload's field names, types, and required fields match what the function declares it returns? Emit when the mock returns a shape the real function cannot, so evaluations pass against a contract production never emits. `CODED_EVAL_FORMAT_MISMATCH` owns `expectedOutput` serialization; this rule owns the mock side. Functions with no declared return type have nothing to compare; skip those mocks. file = eval set JSON, element = `<function_name>`. | Update the mock payload to the function's declared return shape, or add the return annotation the mock implies. |
|
|
50
52
|
| `CODED_EVAL_ISSUE` | warning | evals | Eval-infrastructure observation that no specific rule above fits | Use ONLY when no specific Evals rule fits. Walk all rules in this section first. Emit with concrete description + suggested fix. file = source of the observation. | (Defined per finding.) |
|
|
51
53
|
|
|
52
54
|
### Archetype quick reference
|
|
@@ -71,6 +73,7 @@ LLM-judge-only is acceptable when the agent has no tools, no classification outp
|
|
|
71
73
|
| `CODED_SCHEMA_COMPLETENESS` | warning | schema | `StateGraph` input/output schema is technically present but the fields are insufficient for the agent's contract | Read `StateGraph(input=..., output=...)` (or `_schema=` variants). Read the agent's actual behavior. Assess: are declared input/output fields meaningful and sufficient? An agent that needs `customer_history` + `recent_invoices` but only declares `query: str` is incomplete. file = source file. | Expand the schema to carry the context the agent actually needs / returns. |
|
|
72
74
|
| `CODED_SCHEMA_FIELD_NO_VALIDATION` | warning | schema | Constrained-value field declared as bare `str` (no `Literal`/`Enum`/regex pattern) | Read Pydantic / dataclass models. Assess per field: does the name suggest a constrained set (`category`, `status`, `severity`, `role`, `intent`, `classification`, `priority`)? AND is the type bare `str` (no `Literal`, no `Enum`, no validator)? AND does the agent's logic visibly map to a small enumerated set? Emit per concrete case. file = source file, element = `<Model>.<field>`. | Type the field as `Literal["a", "b", "c"]` or `Enum`, or add `Field(..., pattern="...")`. |
|
|
73
75
|
| `CODED_OUTPUT_ENUM_MISSING_ON_CLASSIFIER` | warning | schema | Classifier-shaped output field declared without enum | Read output schema (Pydantic field, `StateGraph` output annotation, dataclass). Identify classifier-shape fields by name (`class`, `classification`, `label`, `category`, `intent`, `severity`, `priority`, `status`) with `type: str`. Assess: is there a `Literal[...]` / `Enum` / pattern constraint? Both this rule and `CODED_SCHEMA_FIELD_NO_VALIDATION` can fire on the same field — the more-specific firing clarifies the issue. file = source file, element = field name. | Add `Literal[...]` / `Enum` / pattern constraint to the classifier output field. |
|
|
76
|
+
| `CODED_OUTPUT_CONSUMER_DRIFT` | warning | schema | A project in review scope consumes the agent's result but reads fields, types, or states the output model does not declare | Applies only when the Step 1 project table lists a consumer of this agent (sibling flow, RPA project, API workflow, or agent invoking it). Read how the consumer uses the result and read the agent's declared output model (`Output` Pydantic class, `StateGraph` output schema, dataclass). Assess: does the consumer read a field the model omits, assume a different type, or branch on a status the model cannot emit? `CODED_MULTI_AGENT_CROSS_SCHEMA` owns the input direction of `sdk.processes.invoke(...)`; this rule owns the output direction. When no consumer is in review scope the subject set is empty — an out-of-scope caller is not evidence, and an empty subject set is not a skipped rule. file = consumer source, element = `<field>`. | Reconcile the two — add the field to the output model, or read the field the agent actually declares. |
|
|
74
77
|
| `CODED_SCHEMA_ISSUE` | warning | schema | Schema observation that no specific rule above fits | Use ONLY when no specific Schema rule fits. Emit with concrete description + suggested fix. file = source of the observation. | (Defined per finding.) |
|
|
75
78
|
|
|
76
79
|
---
|
|
@@ -106,7 +109,7 @@ LLM-judge-only is acceptable when the agent has no tools, no classification outp
|
|
|
106
109
|
|
|
107
110
|
| rule_id | severity | category | trigger | detection_method | suggested_fix |
|
|
108
111
|
|---|---|---|---|---|---|
|
|
109
|
-
| `CODED_GUARDRAIL_RECOMMENDED` | info | guardrails | A guardrail is recommended for a use case the coded agent matches but doesn't wire (one finding per missing guardrail; specifics in the message) | Apply `guardrails/coded-guardrails-review.md` **Recommend Mode**: fetch the live catalog
|
|
112
|
+
| `CODED_GUARDRAIL_RECOMMENDED` | info | guardrails | A guardrail is recommended for a use case the coded agent matches but doesn't wire (one finding per missing guardrail; specifics in the message) | Apply `guardrails/coded-guardrails-review.md` **Recommend Mode**: fetch the live catalog (Step 0; SDK docs only if the message names Python classes); read the entry `.py` (system prompt, Pydantic input/output schemas, `@tool` docstrings); for each catalog entry whose `when_to_use` / `use_cases` / `security_risk_addressed` match the agent and which is not already wired (no matching middleware / `@guardrail`), emit one finding. The message names the guardrail / `security_category`, the matched use case, the recommended scope, and the recommended **action** — **block/escalate** when protection is needed (PII that must not enter, injection, harmful content) or **log** for audit only. De-dup by `security_category`. Do NOT name a platform-documented validator unless already present. file = entry `.py`. | Wire the named guardrail at the catalog-recommended scope/action (middleware or `@guardrail`; cite `examples[].config`) — see the `uipath-agents` coded guardrails-recommend capability. |
|
|
110
113
|
| `CODED_GUARDRAIL_ACTION_INEFFECTIVE` | judgment | guardrails | A guardrail's action is ineffective or counterproductive for its scope | Apply `guardrails/coded-guardrails-review.md` **Audit Mode → Actionability**: for each guardrail the CLI did not flag, compare its validator + scope (`GuardrailScope.*` or decorator target) + action class (`BlockAction` / `LogAction` / `EscalateAction` / custom) against the catalog entry's `when_not_to_use` / `examples[].config` action for that scope. Emit when counterproductive — a security-critical guardrail using `LogAction` where the example blocks; PII `Block`/filter at Tool scope on a tool that legitimately needs the data; PII `Log` at Agent/Llm. Name the recommended action. file = entry `.py`, element = guardrail name. | Use the action the catalog recommends for that scope, or move the guardrail to a scope where the action is effective. |
|
|
111
114
|
| `CODED_GUARDRAIL_MISAPPLIED` | judgment | guardrails | A guardrail is present but doesn't belong on this agent, or is wired where it won't guard as intended | Apply `guardrails/coded-guardrails-review.md` **Audit Mode → Relevance + Wiring**: (a) Relevance — establish the agent's context (system prompt, schemas, tool docstrings), read the catalog entry's `when_not_to_use` / `NOT_recommended_for`, emit when the agent matches a disqualifying condition (e.g. a generate-only agent carrying a PII guardrail). (b) Wiring — a `@guardrail` LLM/Agent-scope decorator on a function that does **not** return `UiPathChat(...)` / `create_agent(...)` (or on a non-factory) silently no-ops; emit when the decorated target won't be wrapped as intended. Wrong import module / Tool-scope-without-`tools=` / contract violations are the CLI's deterministic rules — do not re-flag. Cite the matched clause or the mis-wiring. file = entry `.py`, element = guardrail name. | Remove the misapplied guardrail, or move the decorator onto the correct factory / `@tool` so it actually wraps the target. |
|
|
112
115
|
| `CODED_GUARDRAILS_ISSUE` | warning | guardrails | Guardrails / safety / PII observation that no specific rule fits | Use ONLY when no specific rule fits. Coded agents have most safety concerns covered under `## SecurityChecker` (`CODED_PROMPT_USER_INPUT_UNSANITIZED`, `CODED_PII_IN_TRACES`), the three rules above, and the deterministic CLI guardrail/secret checks. Reach here only for guardrail / policy observations none of those cover. | (Defined per finding.) |
|
|
@@ -127,6 +130,8 @@ LLM-judge-only is acceptable when the agent has no tools, no classification outp
|
|
|
127
130
|
| `CODED_LLM_OUTPUT_UNVALIDATED` | warning | code | LLM completion used downstream without value-space validation | Read code paths that consume LLM responses (`response.content`, `chat_async(...).strip()`, `client.invoke(...)`). Assess per use site: (a) is the output constrained (`Literal`, `Enum`, fixed string set, JSON schema)? AND (b) is there no validation between the LLM call and the use site? Skip when consumed via `Output.model_validate(...)` or `Enum`-checked. Emit per concrete case. file = source file. | Validate the LLM response against the expected schema/Enum before downstream use. |
|
|
128
131
|
| `CODED_ERROR_HANDLING` | warning | code | Risky external-call site without try/except, fallback, retry, or error surfacing | Read source. Identify external boundaries that can fail in production (LLM `ainvoke`, retriever `ainvoke`, attachment / queues / entities / processes API, HITL `interrupt`, HTTP/DB). Assess per call site: is there a `try/except`, fallback, retry, or error-state surfacing? Skip pure-Python helpers. The multi-agent supervisor variant is `CODED_MULTI_AGENT_ERROR_HANDLING`. Emit per concrete case. file = source file. | Wrap the call in try/except with a fallback path or surface the error in the agent's output state. |
|
|
129
132
|
| `CODED_INVOKEPROCESS_NO_FALLBACK` | warning | code | `interrupt(InvokeProcess(...))` call without branching on `result.status` | Read source. Fire only when source actually imports or calls `InvokeProcess` / `InvokeProcessEvent`. Assess: does the code branch on `status` (`if status ==`, `match` on `.status`, `result.get('status')`)? Without it, `failed`/`faulted` returns malformed data. For general LLM / HTTP / SDK retry use `CODED_ERROR_HANDLING` instead. file = source file. | Branch on `result.status`: handle `"success"` / `"failed"` / `"faulted"` distinctly. |
|
|
133
|
+
| `LANGGRAPH_CYCLE_NO_EXIT` | error | code | Graph cycle whose exit is absent or unreachable (`LANGGRAPH` only) | Read the graph construction (`add_node`, `add_edge`, `add_conditional_edges`) and build the topology. Identify cycles. Assess per cycle: does at least one conditional edge leaving it resolve to a destination outside the cycle (`END` or a non-cycle node), AND can the router function actually return that value from state the nodes write? A router that only ever returns in-cycle destinations, or whose exit branch tests a state key no node sets, runs until the runtime iteration cap and burns tokens. Reason about the router body and state writes — the topology alone does not decide it. file = source file, element = the cycle as `<node_a>→<node_b>`. | Add a conditional edge out of the cycle whose exit condition is reachable from state the nodes actually write. |
|
|
134
|
+
| `CODED_LLM_CLIENT_IMPORT_TIME_INIT` | warning | code | LLM client or other authenticating resource constructed at import time | Read module-level statements in the entry module and in anything it imports at import time. Assess: is an authenticating or expensive client (`UiPathChat`, `UiPathAzureChatOpenAI`, `ChatOpenAI`, SDK / HTTP / database client) constructed before any function runs — directly, via a module-level factory call, or via a default argument evaluated at definition time? `uip codedagent init` executes the module to discover schemas, so import-time authentication breaks setup. Follow aliasing and helper indirection the CLI's import regex does not; never re-flag a construction the CLI already reported. file = source file, element = symbol name. | Construct the client inside the function or node that uses it, or behind a lazily-called accessor. |
|
|
130
135
|
| `CODED_CODE_ISSUE` | warning | code | Code observation that no specific rule above fits | Use ONLY when no specific Code rule fits. Emit with concrete description + suggested fix. file = source of the observation. | (Defined per finding.) |
|
|
131
136
|
|
|
132
137
|
---
|
|
@@ -144,6 +149,7 @@ LLM-judge-only is acceptable when the agent has no tools, no classification outp
|
|
|
144
149
|
| `CODED_MULTI_AGENT_ERROR_HANDLING` | warning | general | (coded_workflow only) Multi-agent project lacks supervisor-level error handling | Read supervisor. Assess: project has ≥2 sub-agents (workers / handoffs) AND supervisor lacks fallback edges, try/except, or error states in routing logic. An unhandled worker exception terminates the entire graph. For single-agent error handling use `CODED_ERROR_HANDLING`. file = supervisor source. | Add fallback edges / try-except at the supervisor level. |
|
|
145
150
|
| `CODED_MULTI_AGENT_CROSS_SCHEMA` | warning | general | (coded_workflow only) `sdk.processes.invoke(...)` targeting a sibling agent has cross-schema mismatch | Read source. For each `sdk.processes.invoke()` targeting another agent in the same repo, read both the call's `input_arguments` and the target agent's declared input schema. Assess: are keys + types consistent? Emit per concrete mismatch. file = source file. | Reconcile `input_arguments` with the target agent's input schema. |
|
|
146
151
|
| `CODED_SUB_AGENT_PROMPT_DUPLICATION` | warning | general | (coded_workflow only) Two or more sub-agent prompts are substantively the same (paraphrase-equivalent) | Read each sub-agent's system prompt (`create_react_agent` workers, `Agent[Ctx]` instances). Assess pairwise: are any two prompts paraphrase-equivalent (not literal byte-match)? Routing becomes unreliable when worker capabilities are indistinguishable. file = source file, element = `<agent_a>,<agent_b>`. | Differentiate prompts so each worker has a distinct, scoped responsibility. |
|
|
152
|
+
| `CODED_HANDOFF_NO_TERMINATION` | warning | general | (coded_workflow only) Agents can hand off to each other with no termination criteria or handoff bound | Read the handoff topology (`handoffs=[...]`, supervisor routing, agent graph) and each participant's instructions. Assess: can control return to an agent that already ran, and does anything stop it — completion criteria in the instructions, a handoff counter, a terminal agent? Emit when mutual handoff is reachable with no bound; the pair trades the task until the runtime cap, consuming tokens without completing. `LANGGRAPH_CYCLE_NO_EXIT` owns `StateGraph` edge cycles; this rule owns agent-to-agent delegation. file = supervisor or agent-definition source, element = `<agent_a>,<agent_b>`. | State completion criteria in each agent's instructions, or add a handoff bound the supervisor enforces. |
|
|
147
153
|
| `CODED_GENERAL_ISSUE` | warning | general | General-category observation that no specific rule above fits | Use ONLY when no other category fits — repository hygiene, documentation drift, project structure. Emit with concrete description + suggested fix. file = source of the observation. | (Defined per finding.) |
|
|
148
154
|
|
|
149
155
|
---
|