From 384cacc670bb96cccf8874d6a5fd2edec2955c79 Mon Sep 17 00:00:00 2001 From: g-but <41178744+g-but@users.noreply.github.com> Date: Wed, 20 May 2026 15:12:00 +0200 Subject: [PATCH] fix(orchestration): record outcome:error on worker start failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Path 1 (openclaw worker) error branch updated state:'error' but left outcome NULL, so the dispatch reasoner's learning loop never saw worker- start failures in the recent-outcomes streak. One-liner: add outcome:'error' to the failure-mode updateOrchestrationRun call. Caught in the Phase 0 audit against the prior 'outcome tracking loop' plan — all other plumbing was already shipped; this was the one gap. --- src/app/api/orchestration/run/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/api/orchestration/run/route.ts b/src/app/api/orchestration/run/route.ts index 572ca7b2b..0d5f10efc 100644 --- a/src/app/api/orchestration/run/route.ts +++ b/src/app/api/orchestration/run/route.ts @@ -358,6 +358,7 @@ export async function POST(req: NextRequest) { } catch (err) { await updateOrchestrationRun(run.id, { state: "error", + outcome: "error", finishedAt: new Date(), payload: { projectId: request.projectId ?? null,