mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-04 10:07:19 +01:00
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:
1 file changed
+1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user