@agent-inspect/vitest 6.25.0 → 6.26.0

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/dist/index.d.cts CHANGED
@@ -238,7 +238,7 @@ interface TraceContractControlRules {
238
238
  }
239
239
 
240
240
  /**
241
- * Retry / side-effect safety checks for TraceContract (6.23).
241
+ * Retry / side-effect safety checks for TraceContract (6.23+; corrected in 6.25.1).
242
242
  *
243
243
  * Uses explicit attempt identity from session workflow metadata.
244
244
  * AgentInspect evaluates; it does not perform retries.
@@ -249,7 +249,8 @@ interface TraceContractControlRules {
249
249
  interface TraceContractRetryRules {
250
250
  /**
251
251
  * Maximum attempts per `operationId` (or `attemptOf` grouping).
252
- * Counts distinct `attemptId` values when present, else finished tool/LLM events.
252
+ * Prefers distinct `attemptId` values, else validated contiguous `attemptNumber`s,
253
+ * else finished tool/LLM events in the operation.
253
254
  */
254
255
  maxAttempts?: number;
255
256
  /**
@@ -257,7 +258,8 @@ interface TraceContractRetryRules {
257
258
  */
258
259
  requireTerminalResult?: boolean;
259
260
  /**
260
- * Fail when `fallbackOf` is set without a prior error attempt for the referenced operation.
261
+ * Fail when `fallbackOf` is set without an earlier failure for the referenced operation
262
+ * that chronologically precedes the fallback event.
261
263
  */
262
264
  fallbackOnlyAfterFailure?: boolean;
263
265
  /**
@@ -266,11 +268,14 @@ interface TraceContractRetryRules {
266
268
  */
267
269
  nonIdempotentTools?: string[];
268
270
  /**
269
- * When true, retries require `idempotencyKey` or `attributes.noSideEffect === true`.
271
+ * When true, genuine retries (including error→success) require `idempotencyKey`
272
+ * or `attributes.noSideEffect === true` / `sideEffect === false`.
273
+ * A client key alone is not proof of exactly-once mutation.
270
274
  */
271
275
  requireIdempotencyEvidenceForRetry?: boolean;
272
276
  /**
273
- * When true, recovered success paths must still retain at least one error attempt event.
277
+ * When true, recovered success paths must retain an earlier error attempt in the
278
+ * same operation/retry chain (not merely coexistence of ok+error).
274
279
  */
275
280
  requireRecoveredFailureVisible?: boolean;
276
281
  }
package/dist/index.d.ts CHANGED
@@ -238,7 +238,7 @@ interface TraceContractControlRules {
238
238
  }
239
239
 
240
240
  /**
241
- * Retry / side-effect safety checks for TraceContract (6.23).
241
+ * Retry / side-effect safety checks for TraceContract (6.23+; corrected in 6.25.1).
242
242
  *
243
243
  * Uses explicit attempt identity from session workflow metadata.
244
244
  * AgentInspect evaluates; it does not perform retries.
@@ -249,7 +249,8 @@ interface TraceContractControlRules {
249
249
  interface TraceContractRetryRules {
250
250
  /**
251
251
  * Maximum attempts per `operationId` (or `attemptOf` grouping).
252
- * Counts distinct `attemptId` values when present, else finished tool/LLM events.
252
+ * Prefers distinct `attemptId` values, else validated contiguous `attemptNumber`s,
253
+ * else finished tool/LLM events in the operation.
253
254
  */
254
255
  maxAttempts?: number;
255
256
  /**
@@ -257,7 +258,8 @@ interface TraceContractRetryRules {
257
258
  */
258
259
  requireTerminalResult?: boolean;
259
260
  /**
260
- * Fail when `fallbackOf` is set without a prior error attempt for the referenced operation.
261
+ * Fail when `fallbackOf` is set without an earlier failure for the referenced operation
262
+ * that chronologically precedes the fallback event.
261
263
  */
262
264
  fallbackOnlyAfterFailure?: boolean;
263
265
  /**
@@ -266,11 +268,14 @@ interface TraceContractRetryRules {
266
268
  */
267
269
  nonIdempotentTools?: string[];
268
270
  /**
269
- * When true, retries require `idempotencyKey` or `attributes.noSideEffect === true`.
271
+ * When true, genuine retries (including error→success) require `idempotencyKey`
272
+ * or `attributes.noSideEffect === true` / `sideEffect === false`.
273
+ * A client key alone is not proof of exactly-once mutation.
270
274
  */
271
275
  requireIdempotencyEvidenceForRetry?: boolean;
272
276
  /**
273
- * When true, recovered success paths must still retain at least one error attempt event.
277
+ * When true, recovered success paths must retain an earlier error attempt in the
278
+ * same operation/retry chain (not merely coexistence of ok+error).
274
279
  */
275
280
  requireRecoveredFailureVisible?: boolean;
276
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-inspect/vitest",
3
- "version": "6.25.0",
3
+ "version": "6.26.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Vitest reporter and experimental TraceContract matchers for AgentInspect local evidence",
@@ -37,7 +37,7 @@
37
37
  "vitest": "^2.1.0 || ^3.2.6"
38
38
  },
39
39
  "dependencies": {
40
- "agent-inspect": "6.25.0"
40
+ "agent-inspect": "6.26.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "vitest": "^3.2.7"