fix(orchestration): record outcome:error on worker start failure

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.
This commit is contained in:
g-but committed 2026-05-20 15:12:00 +02:00
1 parent 6fa1158703
commit 384cacc670
1 file changed
+1
+1
View File
@@ -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,