@causyne/agent 1.20.10 → 1.20.11
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/package.json +1 -1
- package/src/providers/antigravity.js +0 -11
- package/src/providers/antigravity.ts +0 -15
- package/src/stallGuard.js +3 -12
- package/src/stallGuard.ts +3 -12
package/package.json
CHANGED
|
@@ -867,7 +867,6 @@ export class AntigravityProvider extends LLMProvider {
|
|
|
867
867
|
};
|
|
868
868
|
const maxNativeActions = desktopTask ? 12 : Infinity;
|
|
869
869
|
let nativeActionStarts = 0;
|
|
870
|
-
let consecutiveInspections = 0;
|
|
871
870
|
const seenNativeActionSteps = new Set();
|
|
872
871
|
// Antigravity's result usage is cumulative across the conversation, but
|
|
873
872
|
// DONE step updates carry usage for that step. Keep a turn-local subtotal
|
|
@@ -1022,16 +1021,6 @@ export class AntigravityProvider extends LLMProvider {
|
|
|
1022
1021
|
(stepUpdate && typeof stepUpdate === 'object' && stepUpdate.parameters) ||
|
|
1023
1022
|
(toolInfo && typeof toolInfo === 'object' && toolInfo.input) ||
|
|
1024
1023
|
{};
|
|
1025
|
-
if (options.taskArchetype === 'media_3d_generation' && newNativeAction && name) {
|
|
1026
|
-
consecutiveInspections = isReadOnlyNativeInspection(String(name), rawParams)
|
|
1027
|
-
? consecutiveInspections + 1 : 0;
|
|
1028
|
-
if (consecutiveInspections >= 10) {
|
|
1029
|
-
const error = Object.assign(new Error('Antigravity made 10 consecutive read-only media inspections without a change. Pausing to redirect the task before further token use.'), { code: 'AGY_EXPLORATION_LOOP', inspectionCount: consecutiveInspections });
|
|
1030
|
-
safeReject(error);
|
|
1031
|
-
terminateChild();
|
|
1032
|
-
return;
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
1024
|
if (name) {
|
|
1036
1025
|
const existingAttempt = attemptedNativeTools.find(a => a.name === name && a.status === 'running');
|
|
1037
1026
|
if (existingAttempt) {
|
|
@@ -905,7 +905,6 @@ export class AntigravityProvider extends LLMProvider {
|
|
|
905
905
|
};
|
|
906
906
|
const maxNativeActions = desktopTask ? 12 : Infinity;
|
|
907
907
|
let nativeActionStarts = 0;
|
|
908
|
-
let consecutiveInspections = 0;
|
|
909
908
|
const seenNativeActionSteps = new Set<number>();
|
|
910
909
|
// Antigravity's result usage is cumulative across the conversation, but
|
|
911
910
|
// DONE step updates carry usage for that step. Keep a turn-local subtotal
|
|
@@ -1066,20 +1065,6 @@ export class AntigravityProvider extends LLMProvider {
|
|
|
1066
1065
|
(toolInfo && typeof toolInfo === 'object' && toolInfo.input) ||
|
|
1067
1066
|
{};
|
|
1068
1067
|
|
|
1069
|
-
if ((options as any).taskArchetype === 'media_3d_generation' && newNativeAction && name) {
|
|
1070
|
-
consecutiveInspections = isReadOnlyNativeInspection(String(name), rawParams)
|
|
1071
|
-
? consecutiveInspections + 1 : 0;
|
|
1072
|
-
if (consecutiveInspections >= 10) {
|
|
1073
|
-
const error = Object.assign(
|
|
1074
|
-
new Error('Antigravity made 10 consecutive read-only media inspections without a change. Pausing to redirect the task before further token use.'),
|
|
1075
|
-
{ code: 'AGY_EXPLORATION_LOOP', inspectionCount: consecutiveInspections }
|
|
1076
|
-
);
|
|
1077
|
-
safeReject(error);
|
|
1078
|
-
terminateChild();
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
1068
|
if (name) {
|
|
1084
1069
|
const existingAttempt = attemptedNativeTools.find(a => a.name === name && a.status === 'running');
|
|
1085
1070
|
if (existingAttempt) {
|
package/src/stallGuard.js
CHANGED
|
@@ -204,18 +204,9 @@ export class StallGuardController {
|
|
|
204
204
|
return decision;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
code: 'read_only_loop_halt',
|
|
211
|
-
message: `FATAL ERROR: Read-Only Verification Loop Detected. Agent performed ${this._distinctInspectionCount} consecutive inspection steps without writing any implementation code. Forcibly aborting task to save tokens.`,
|
|
212
|
-
toolName,
|
|
213
|
-
count: this._distinctInspectionCount,
|
|
214
|
-
signature
|
|
215
|
-
};
|
|
216
|
-
this._haltDecision = decision;
|
|
217
|
-
return decision;
|
|
218
|
-
}
|
|
207
|
+
// Distinct inspections can be necessary for large codebases and research.
|
|
208
|
+
// Count them for a progress nudge, but only stop on evidence of repetition
|
|
209
|
+
// or an explicit task budget. Task intent alone is not evidence of a stall.
|
|
219
210
|
return {
|
|
220
211
|
action: 'allow',
|
|
221
212
|
code: 'allow',
|
package/src/stallGuard.ts
CHANGED
|
@@ -259,18 +259,9 @@ export class StallGuardController {
|
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
code: 'read_only_loop_halt',
|
|
266
|
-
message: `FATAL ERROR: Read-Only Verification Loop Detected. Agent performed ${this._distinctInspectionCount} consecutive inspection steps without writing any implementation code. Forcibly aborting task to save tokens.`,
|
|
267
|
-
toolName,
|
|
268
|
-
count: this._distinctInspectionCount,
|
|
269
|
-
signature
|
|
270
|
-
};
|
|
271
|
-
this._haltDecision = decision;
|
|
272
|
-
return decision;
|
|
273
|
-
}
|
|
262
|
+
// Distinct inspections can be necessary for large codebases and research.
|
|
263
|
+
// Count them for a progress nudge, but only stop on evidence of repetition
|
|
264
|
+
// or an explicit task budget. Task intent alone is not evidence of a stall.
|
|
274
265
|
|
|
275
266
|
return {
|
|
276
267
|
action: 'allow',
|