Files
deepseek-harness/packages/workflow/workflow/src
sjw1231 1784d23da9 fix(workflow): keep the fatal code that ended a failed run
A fatal WorkflowError such as AGENT_CAP or ITEM_CAP was rendered to text
inside the PTC guest, so the workflow tool could only report RUN_FAILED.
WorkflowResult and the workflow/end payload now carry errorCode, the
code of the fatal error that ended an error run; the host validates it
at the process boundary and the tool fails with that code. RUN_FAILED
remains only for an error run without one: the script's own exception or
an engine runtime failure. WorkflowError narrows code to
WorkflowErrorCode.

Refs #7869
2026-11-11 13:10:55 +08:00
..