Presenting
Part of Uipath troubleshoot. Install the skill and your agent reads this page when it needs the depth.
Presenting the Resolution
Rules for the final user-facing resolution — formatting, entity naming, cross-domain fix completeness, evidence gating, and interactive fixes. Load this file when the verification checklist has passed (or a reduced-confidence / diagnostic-recommendation terminal applies) and you are ready to present.
Inputs
.local/investigations/notes.md— anchor, signals, matched playbook(s), branch decisions, checklist verdicts.local/investigations/raw/— authoritative field values; quote entity names and values from here- Matched playbook(s) —
## Resolutionsections uip docsai ask "<question>" --source docs|technical_solution_articles— for domains missing a playbook resolution
1. Load presentation rules
For each domain in the causal chain, read references/products/{domain}/presentation.md or references/activity-packages/{domain}/presentation.md if it exists. These define entity naming and field labels.
2. Assemble fixes across all domains
Classify each domain in the causal chain: root cause domain (failure originated) or propagation domain (failure surfaced or was relayed).
Root cause domain
- Matched playbook's
## Resolution— if present, use the branch keyed to the verified cause. - No
## Resolution— runuip docsai asktargeted at the domain's fix. Use the result if concrete and actionable. - Docsai returns nothing useful — write: "No documented fix found for the {domain} layer — check UiPath documentation or consult UiPath support."
Propagation domains
For each domain that relayed or surfaced the fault:
- Matched playbook's
## Resolution— if present, use it. - Otherwise run
uip docsai askfor that domain's error-handling / resilience patterns. Frame the query around the domain's role, not the specific root cause (e.g., "error boundary events for service tasks in Maestro", "retry policies for faulted jobs in Orchestrator", "fallback configuration for Integration Service connectors"). - Concrete pattern found → include as a preventive fix for that layer, citing the docsai result.
- Nothing useful → write: "No documented error handling pattern found for the {domain} layer — check UiPath documentation for resilience options."
Do NOT write "No configuration change needed" for a propagation domain. Every domain in the causal chain gets either a fix or an explicit no-documented-pattern note.
Source gating
Every fix step cites its source (playbook section, docsai result, or raw data file).
- Preserve docsai URLs — full URL, not just a title.
- Step with no documented source → drop it, or mark
[Unverified]visibly. - Undocumented field/setting behavior → do NOT include. Write: "Check UiPath documentation for [{field/setting}] behavior before proceeding."
Discriminator carry
The final answer states the discriminating datum, not just the verdict:
- Name the datum that separates the confirmed cause from its sibling causes (the same evidence the verification checklist pinned) — "the recovered label matches the unchanged live button, so this is a mistyped selector, not a page change", not just "fix the selector".
- Upstream "why" unproven after the checklist AND after every reachable evidence source is exhausted — including workflow source present in the working directory (check its top level; if the project is there, read it, do not enumerate around it) → enumerate the candidate explanations ranked by evidence (most likely first, one line each, each tagged by what would confirm it) instead of only flagging the gap. Enumeration is never a substitute for reading available source.
3. Format
Root Cause: {description}
What went wrong: {one sentence}
Why: {root cause explanation — trace the full causal chain across all domains}
Evidence:
### {Domain} (Root Cause)
- {bullets — quote specific field values, error messages, IDs, timestamps, state, per this domain's presentation rules}
### {Domain} (Propagation)
- {bullets}
Immediate fix:
### {Domain} (Root Cause)
1. {What to do — concrete action with exact navigation path or command}
- Why: {cite evidence that makes this step necessary}
- Where: {exact file, UI path, setting, or command}
- Who: {RPA developer | admin | platform team | process owner, or the owner labels the domain's presentation.md defines}
- Source: {playbook path or docsai URL}
### {Domain} (Propagation)
1. {same structure}
Preventive fix:
1. {Domain} -- {What to change — concrete action}
- Why: {cite specific evidence showing the gap this fix addresses}
- Where: {exact file, UI path, setting}
- Who: {RPA developer | admin | platform team}
- Source: {playbook path or docsai URL}
2. {next domain, same structure}
Next action:
- Repair: {step numbers and Who:}
- Re-check (not run): `{command}`
- Later decision: {action}
Next action
When a root cause is confirmed, the resolution ends with, in this order:
- Repair, by owner — a change to the faulty artifact or setting: source, workflow (including migrating it to other activities or packages), config, binding, permission, connection. Name the Immediate fix steps by number, each with its
Who:; Immediate fix itself lists no Later decision step. A Repair step is advice for its owner; never run it unasked. Omit this line when every fix step is a Later decision; the Re-check then leads. - Re-check (not run) — one line naming one read-only command that shows the run's current state before the later decision (e.g.
uip or jobs get <JOB_KEY> --no-download --output json,uip maestro <type> instance incidents <INSTANCE_ID> --folder-key <FOLDER_KEY> --output json), entity ID filled in. A faulted run stays faulted after the repair: the read shows the state the later decision acts on, not that the repair worked. Copy it in its documented form from the investigation guide or the matched playbook. Name it; do NOT run it. No run to read, or no such command documented in the investigation guide or the matched playbook (e.g. Assistant sign-in, local dev-server failures) → omit this line; never compose one. - Later decision — any action that runs, publishes or deploys something (run, retry, resume, restart, instance migrate, upload, publish, deploy; first time or again), on its own line as the user's call after the re-check, unless the matched playbook's
## Resolutionprescribes that action alone as the fix for the confirmed cause (transient fault) — then it is the repair. On a Maestro instance, retry, resume and migrate are always a Later decision. A run, publish or deploy that follows another fix step is a Later decision: split it out of bundled playbook text. Exception: a restart whose only purpose is to load the setting the preceding fix step changed (service, app or dev-server restart) stays in the Repair. Nothing deferred → omit this line.
The closing message and any written diagnosis file carry every Next action line that applies. In the closing message, the Later decision stays its own line after the Re-check, never an item in a numbered next-steps list.
Reduced-confidence terminal (checklist gap survived the re-fetch): present the same structure, name the gap explicitly next to the cause statement, and lead the Immediate fix with the playbook's diagnostic recommendation (e.g., a byte-compare snippet) instead of a guessed branch. In Next action, the Repair is that diagnostic; give no Later decision. Recommending the discriminating diagnostic IS the deliverable when evidence cannot separate sibling causes — never silently pick one.
No root cause found (exempt from Next action): present what was investigated and ruled out (from notes.md), and recommend providing more data or opening a UiPath support ticket.
4. Apply presentation rules
Check every entity name against the presentation guides and raw data:
- Display names from raw data, not API property names or paraphrases
- IDs only where needed for commands
- UI labels, not API field names
5. Investigation summary table
| # | What was checked | Verdict | Key Evidence | Resolution |
|---|
One row per playbook/branch/candidate checked (from notes.md), including eliminated ones.
6. Interactive resolutions — the approval gate
If a matched playbook's ## Resolution is interactive — it prescribes printing concrete values and asking the user before applying a fix (the Healing Agent apply-fix flow via activity-packages/ui-automation/interpretations/healing-agent-data.md is the canonical example) — execute this protocol after presenting. This applies even when the cause label was refined or downgraded: cause label and remediation path are separable; the playbook's remediation procedure remains authoritative.
For each interactive action, in order:
Print the user-facing data as plain text — NOT inside AskUserQuestion options or previews. E.g. for a selector fix:
Failed selector: {failed_selector_xml from raw data} Recovered Partial selector: {recovered_partial_selector_xml — or "(not available)"} Recovered Fuzzy selector: {recovered_fuzzy_partial_selector_xml — or "(not available)"}Print required warnings verbatim. E.g. when
OrchestratorEnableHeal=false: "Healing Agent was running in recommendation-only mode (OrchestratorEnableHeal=false) — the recovered selector was inferred from the UI tree after the failure but was not validated at runtime. There is no guarantee it will work." Analogous wording forRecoverySuccessful=false.Ask via AskUserQuestion — the exact apply/dismiss question, plus a project-path follow-up if the path is not already known.
On accept: delegate the apply — never edit the artifact yourself. Spawn a subagent that loads the artifact's owning skill (
.xaml/.cs→uipath-rpa, which itself drives the package-bundled selector-recovery flow) and hand it the confirmed change: the workflow file, the activity matched byActivityRefId, the before→after value, andproject_dir. The delegate edits in place atproject_dir(the user's real working copy — do NOT spawn it into a fresh isolated worktree, which forks a throwaway copy the edit never reaches), applies any XML encoding, and validates (uip rpa validate --file-path "<WORKFLOW_FILE>" --output json) — you run none of those steps and no write-back CLI. After the delegate applies, the confirmation message must restate the confirmed root cause and the complete resolution — it must stand alone as the investigation's summary for a user returning to only that message; never let it read as if the applied edit were the primary or only fix.On decline, non-answer, unavailable
AskUserQuestion, no usable delegate, or a delegation that fails/errors: do not modify files. Present the proposed edit as plain text and stop — a missing/failed approval or a failed delegation is never permission to edit the artifact yourself. If a delegation errored or was spawned more than once, verify whether the edit already landed by reading the target file before doing anything else; never self-edit to "finish" or redo a delegate's work.
Pull every value from raw data. A required value missing (e.g., recovered_partial_selector_xml) → do NOT fabricate; surface the action as blocked, naming the missing evidence, and offer it as a follow-up.
Boundaries
- Do NOT fabricate fix steps from undocumented field behavior — cite sources or flag
[Unverified]. uip docsai askis the only CLI command this phase may add beyond what the playbook documents.- Diagnosis is autonomous; you never mutate user source files yourself — on approval the apply is delegated to the artifact's owning skill; without approval or a usable delegate it is recommendation-only. No exceptions.