Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…User errors [AE-1867] create_trigger wrapped every non-HITL failure as ErrorCategory.SYSTEM "Failed to create HITL action". A 4xx from the dependency (other than 408, 409, 429) is now a User error and the message names the trigger type. SaveExternalTrigger failures stay System. Eval telemetry writes ErrorCategory for UiPathFaultedTriggerError so the URT alert can filter it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are identified, and targeted regression and telemetry coverage addresses the changed error-classification and reporting paths.
No open issues 🎉
What changed in this PR
Updates resume-trigger error classification so dependency 4xx responses are reported as user errors while Orchestrator registration failures remain system errors. Eval telemetry now records categories for faulted trigger errors.
Changes:
- Added status-based trigger classification and explicit registration error handling.
- Added telemetry and regression tests.
- Updated package versions, dependency constraints, and lockfiles.
| File | Description |
|---|---|
| packages/uipath/uv.lock | Updates locked uipath and platform dependency versions. |
| packages/uipath/tests/cli/eval/test_eval_telemetry.py | Tests ErrorCategory telemetry for faulted trigger errors. |
| packages/uipath/src/uipath/_cli/_evals/_telemetry.py | Records error categories for UiPathFaultedTriggerError telemetry. |
| packages/uipath/pyproject.toml | Updates the package version and platform dependency floor. |
| packages/uipath-platform/uv.lock | Updates the locked platform package version. |
| packages/uipath-platform/tests/services/test_hitl.py | Tests status-based trigger classification and registration failure handling. |
| packages/uipath-platform/src/uipath/platform/resume_triggers/_protocol.py | Classifies dependency failures by HTTP status and wraps Orchestrator registration failures. |
| packages/uipath-platform/pyproject.toml | Bumps the platform package version. |
Review effort: Lite
…er-facing in evals [AE-1867] A 401 on a dependency call is usually an expired job token, so it stays System. Eval runs now mark a User-category UiPathFaultedTriggerError as a workload failure, so IsRuntimeException is false for it, like other User errors. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



When an agent tool starts a DeepRag, batch transform, job or IXP extraction and the dependency rejects the call,
UiPathResumeTriggerCreator.create_triggerwraps the error asErrorCategory.SYSTEM"Failed to create HITL action". So an ECS 400 saying the customer's index has no valid files looks like a platform failure of a HITL action. Eval telemetry then writes noErrorCategoryat all forUiPathFaultedTriggerError, and the URT eval alert pages the eval DRI for every one of them. Fixes AE-1867.What breaks today: ECS tells the customer to fix their index, the SDK tells us the platform is down
With the fix: the status code decides who owns the failure
How it works
create_triggernow reads the HTTP status off theEnrichedExceptionthat the services raise. A 4xx becomesErrorCategory.USER, except 401, 408, 409 and 429, which staySYSTEMwith every 5xx and non-HTTP error. A 401 is usually our job token expiring, and the other three are timeouts, conflicts and throttling. The message names the trigger type ("Failed to create resume trigger of type DeepRag") and the dependency's response stays in the detail. Errors that were already classified (index not found isDEPLOYMENT) pass through unchanged as before.SaveExternalTriggeris our own Orchestrator call made inside the sametry, so I wrap its failures asSYSTEM"Failed to register the resume trigger with Orchestrator" before the generic rule can see a 4xx from it. A 400 there is our bug, not the customer's index.In
uipath,_evals/_telemetry.pywritesErrorCategoryforUiPathFaultedTriggerErrortoo, andeval/runtime/runtime.pytreats a User trigger error as a workload failure like any other User error, soIsRuntimeExceptionis false and the console prints the error line instead of the logs panel. The alert side is UiPath/SRE#15356, which dropsUiPathFaultedTriggerErrorrows whose category isUser.What to look at
createDeepRag400, DU digitization 400, OrchestratorStartJobs400) without touching each handler. The cost is that a 4xx from any trigger's dependency is now the caller's fault. I think that is right for 400/403/404, and I kept 401/408/409/429 out on purpose. Outside evals this also changes the category on the agent job itself, becauseuipath-runtimecopiesexc.categoryinto the job error contract (UiPathRuntimeError.from_resume_trigger_error). A customer whose index is empty now sees a User fault on the job, which is what we want.SYSTEM; this PR is the category change.uipath-platform0.3.24,uipath2.15.16, anduipathnow needsuipath-platform>=0.3.24because both changed.Testing
All of these are unit runs, with the HTTP failures injected at the service boundary (
start_deep_rag_async,ProcessesService.invoke_async,ApiClient.request_async) asEnrichedExceptionbuilt with the production status, URL and body. I did not run an agent against a live tenant.c40e713b) on top ofmain50a722a: 18 cases intest_hitl.pyand 1 intest_eval_telemetry.pyfail. They cover DeepRag 400/403/404 -> User, 408/409/429/500 -> System, StartJobs 400 -> User, SaveExternalTrigger 400 -> System, andEvalRun.FailedcarryingErrorCategory = "User". On the fix commits all of them pass, plus the 401 -> System case and two_is_user_facing_errorcases I added after review (they failed before the review commit84fc189fand pass on it).84fc189f:uipath-platform2917 passed, 8 skipped (credential-gated LLM tests), 4 e2e deselected;uipath2931 passed. mypy,ruff checkandruff format --checkare clean for both packages.check_dependency_version_bumps.pyandcheck_version_uniqueness.pypass locally, anduv lock --checkpasses; the lockfiles change only the two version lines.Before: every case fails on category, message, or the missing telemetry property
After: same named cases on
84fc189f, plus the 401 caseImpact and the proof-of-work gate
Over 30 days to 2026-12-03 in prd: one paid aue org (
58a6e1c3) had 43 failed eval runs from this path, and they were all 13 aue alert windows ofagents-evalrun-failed-urt. One paid eus org hit the same wrapper twice on a DU 400. Full write up, queries and the customer mitigation are on AE-1867.The independent Codex intent gate in our proof-of-work flow did not pass. It returned REVISE three times, and I went ahead after the third with the eval DRI lead's OK. None of the objections were against the fix itself; they were about how the scope and the evidence were stated. Each one and what I did:
First verdict
main, and fix(platform): name the failing trigger type in resume-trigger errors [MST-18258] #1993 is not on local refs. I marked the first two as regression checks and point at fix(platform): name the failing trigger type in resume-trigger errors [MST-18258] #1993 throughgh.StartJobs400 test on the job path.track_eventcall namedEvalRun.Failed.mainSHA and show both mismatches. The test commit sits on 50a722a with no source change, and each test compares(category, message)as one tuple.Second verdict
DEPLOYMENTmapping and the pass-through of classified errors, and fix a line citation. Done in the intent.SaveExternalTriggerpath. I added both, and that is why the registration call is now explicitlySYSTEM.-vv --tb=short.Third verdict
connections.list_asyncis now User; a missing connection stays System."No valid files..." in error.detail); onmainthat line is never reached behind the tuple assertion, and the production rows show the ECS text in the message today.The work gate (Codex, asked to refute the diff against the evidence) also did not pass; it returned REFUTED twice. The first round found two real problems, which I fixed:
uv lockhad reset theexclude-neweroptions inpackages/uipath/uv.lock(reverted to main's block), and the intent still named the old registration message. It also flagged that I had moved_determine_trigger_typeout of thetry; in the second round I put it back, with aNonedefault and a fallback message in the same shape as #1993, so the wrapper catches exactly what it catches onmain. The objection left standing is build identity: the gate wants the browser markers our MFE flow uses (federation container and dev globals), which do not exist for an SDK change. Identity here is the commit SHA printed at the top of each capture and the branch-only test ids.Deep review: slop meter 5/100, tunnel vision 0/100. The Codex recheck came back "amend" with two P2s, both fixed in
84fc189f: a 401 was being classified as User (it is our token, so it stays System now), and User trigger errors were still counted as runtime exceptions in eval telemetry.Out of scope
GET ecs_/v2/deeprag/<id>(5 rows) escapes from the resume read as a rawEnrichedException. It is an ECS concurrency error and stays System; the read path is a separate change.🤖 Generated with Claude Code