feat: add WorkloadExecuting status to evaluation runs#1391
Open
feat: add WorkloadExecuting status to evaluation runs#1391
Conversation
…n runs Differentiate between agent execution phase (WorkloadExecuting) and evaluation/scoring phase (Running) in eval run status transitions. New flow: Pending → WorkloadExecuting → Running → Completed/Failed with WorkloadFailed as a terminal state for agent execution failures. Changes: - Add WORKLOAD_EXECUTING=4 and WORKLOAD_FAILED=5 to EvaluationStatus enum - Create eval runs with WorkloadExecuting status (was IN_PROGRESS) - Add MOVE_EVAL_RUN_TO_RUNNING event to transition after agent succeeds - Add EvalRunStatusUpdateEvent model for status-only updates - Add workload_failed flag to EvalRunUpdatedEvent for proper status selection - Add move_eval_run_status method and handler in progress reporter Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3ab9261 to
e61b12a
Compare
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.
Summary
WorkloadExecutingstatus to distinguish agent execution from evaluation/scoring in the eval run lifecycleWorkloadExecuting(4) status instead ofIN_PROGRESS(1)AGENT_EXECUTION_COMPLETEDevent transitions the run toIN_PROGRESSbefore evaluators executeWorkloadExecuting → Running → Completed/FailedDepends on https://github.com/UiPath/Agents/pull/4529
Changes
events.py: AddAGENT_EXECUTION_COMPLETEDevent type andAgentExecutionCompletedEventmodelruntime.py: PublishAGENT_EXECUTION_COMPLETEDafter agent finishes, before evaluators run_progress_reporter.py: AddWORKLOAD_EXECUTING=4to enum, create eval runs with new status, handle event to transition toIN_PROGRESSRelated
Test plan
WorkloadExecutingstatusRunningafter agent execution completesCompleted/Failedafter evaluators finishpytest tests/cli/eval/)🤖 Generated with Claude Code