The GitHub Actions job "Required Checks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
fa6a5dec57d27ca9bc3b787785a5850c84ca1953 / Jiadong Bai 
<[email protected]>
refactor(agent-service): model execution results as canonical summary types 
(#6009)

### What changes were proposed in this PR?

Redefines the execution result and error types shared by `agent-service`
and the frontend. `SyncExecutionResource` is unchanged:
`adaptLegacySyncExecutionResult` converts its legacy response in one
place.

- `OperatorExecutionSummary` replaces `OperatorInfo`, keeping state,
errors, result summary and console messages separate;
`WorkflowExecutionSummary` replaces `SyncExecutionResult`.
- `WorkflowExecutionState` is the outcome; a legacy `success=false,
state=Completed` becomes `Failed`.
- Result modes use the full `WebOutputMode` union, including
`SetDeltaMode`.
- Sampled rows are `[rowIndex, Tuple]` pairs, not records with a
`__row_index__` marker.
- Compilation and execution failures share `WorkflowFatalError`.
- `GET /agents/:id/operator-results` returns only `resultSummary`, the
field the UI reads.
- `executeOperator` output drops the `Input operator(table shape)` line.
- The popover renders as before; its never-populated Column Statistics
section is removed.

| Before (main) | After |
| --- | --- |
|
![before](https://raw.githubusercontent.com/bobbai00/texera/af4fffe6d168a35633dc933eeb21b94e3df93fcd/popover-table-before.png)
|
![after](https://raw.githubusercontent.com/bobbai00/texera/af4fffe6d168a35633dc933eeb21b94e3df93fcd/popover-table-after.png)
|
|
![before](https://raw.githubusercontent.com/bobbai00/texera/af4fffe6d168a35633dc933eeb21b94e3df93fcd/popover-visualization-before.png)
|
![after](https://raw.githubusercontent.com/bobbai00/texera/af4fffe6d168a35633dc933eeb21b94e3df93fcd/popover-visualization-after.png)
|

### Any related issues, documentation, discussions?

Closes #5750
Part of #5747
Supersedes #5927

### How was this PR tested?

- `agent-service`: `bun run typecheck`, `bun run format:check`, `bun
test`.
- `frontend`: `yarn format:ci`, `yarn build:ci`, and the
agent-interaction, agent.service and workflow-editor specs.
- End to end on main's backend images, with Claude Haiku 5.5 behind
access-control-service and LiteLLM. Given a penguins data-science
prompt, the agent built and ran a 10-operator workflow and recovered
from a failed type cast. Every popover showed its table or plot, as on
main.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.8 (1M context), Claude Fable 5, Codex,
Claude Code (Claude Opus 5.5)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/43516259909

With regards,
GitHub Actions via GitBox

Reply via email to