taskforce-loop-engineering 0.15.18 → 0.15.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.15.19 - 2026-09-19
|
|
6
|
+
|
|
7
|
+
- Recover OpenClaw dispatcher launches rejected during Gateway restart drain by rotating the runtime session and requeueing the task.
|
|
8
|
+
- Match only explicit restart-admission signatures on non-zero exits, leaving unrelated HTTP 503 responses and successful diagnostic text untouched.
|
|
9
|
+
|
|
5
10
|
## 0.15.18 - 2026-09-18
|
|
6
11
|
|
|
7
12
|
- Recover non-zero dispatcher runs that report OpenClaw's missing user-visible-answer prompt by rotating the runtime session and requeueing the task.
|
package/lib/core.mjs
CHANGED
|
@@ -9015,6 +9015,13 @@ const DEFAULT_RECOVERABLE_RUNTIME_PATTERNS = [
|
|
|
9015
9015
|
// not a task defect: classify it as a recoverable incomplete turn so the
|
|
9016
9016
|
// runtime recovery path rotates the worker session and resumes.
|
|
9017
9017
|
{ category: 'incomplete_turn', pattern: 'did not produce a user-visible answer', nonZeroOnly: true },
|
|
9018
|
+
// OpenClaw closes websocket admission while the Gateway drains for a
|
|
9019
|
+
// restart. A worker launched inside that short window receives HTTP 503
|
|
9020
|
+
// before task execution begins. Exact non-zero admission/drain signatures
|
|
9021
|
+
// are runtime interruptions, not development failures.
|
|
9022
|
+
{ category: 'gateway_restart', pattern: 'gateway websocket admission closed', nonZeroOnly: true },
|
|
9023
|
+
{ category: 'gateway_restart', pattern: 'gateway is draining for restart', nonZeroOnly: true },
|
|
9024
|
+
{ category: 'gateway_restart', pattern: 'unavailable during gateway restart', nonZeroOnly: true },
|
|
9018
9025
|
{ category: 'compaction_timeout', pattern: 'compaction timed out' },
|
|
9019
9026
|
{ category: 'compaction_timeout', pattern: 'transcript compaction failed' },
|
|
9020
9027
|
{ category: 'transport_error', pattern: 'connection reset' },
|
package/package.json
CHANGED
|
@@ -107,6 +107,45 @@ assert.equal(inferTaskScope({ body: 'Continue the overall project with a product
|
|
|
107
107
|
assert.equal(classification.recoverableRuntime, undefined);
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
{
|
|
111
|
+
// A worker started while OpenClaw is draining for a Gateway restart exits
|
|
112
|
+
// before task execution. It must use runtime recovery instead of becoming a
|
|
113
|
+
// development failure.
|
|
114
|
+
const classification = dispatchFailureClassification({
|
|
115
|
+
exitCode: 1,
|
|
116
|
+
timedOut: false,
|
|
117
|
+
stderr: '[openclaw] Could not start the CLI.\nReason: gateway rejected websocket upgrade (HTTP 503): Gateway websocket admission closed',
|
|
118
|
+
stdout: ''
|
|
119
|
+
});
|
|
120
|
+
assert.equal(classification.category, 'gateway_restart');
|
|
121
|
+
assert.equal(classification.recoverableRuntime, true);
|
|
122
|
+
assert.equal(classification.requiresHumanAction, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
{
|
|
126
|
+
// Unrelated HTTP 503 responses do not prove a Gateway restart.
|
|
127
|
+
const classification = dispatchFailureClassification({
|
|
128
|
+
exitCode: 1,
|
|
129
|
+
timedOut: false,
|
|
130
|
+
stderr: 'upstream returned HTTP 503',
|
|
131
|
+
stdout: ''
|
|
132
|
+
});
|
|
133
|
+
assert.equal(classification.category, 'retryable_failure');
|
|
134
|
+
assert.equal(classification.recoverableRuntime, false);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
{
|
|
138
|
+
// Successful task output may quote the diagnostic without being replayed.
|
|
139
|
+
const classification = dispatchFailureClassification({
|
|
140
|
+
exitCode: 0,
|
|
141
|
+
timedOut: false,
|
|
142
|
+
stderr: '',
|
|
143
|
+
stdout: 'Documented diagnostic: Gateway websocket admission closed'
|
|
144
|
+
});
|
|
145
|
+
assert.equal(classification.category, 'ok');
|
|
146
|
+
assert.equal(classification.recoverableRuntime, undefined);
|
|
147
|
+
}
|
|
148
|
+
|
|
110
149
|
{
|
|
111
150
|
// A recovered turn may retain the earlier recovery prompt in its result.
|
|
112
151
|
// Once the wrapper exits successfully with a real visible answer, the weak
|