@agent-inspect/jest 6.17.4 → 6.17.5

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
@@ -179,6 +179,13 @@ interface TraceContractRunRules {
179
179
  maxDurationMs?: number;
180
180
  }
181
181
  interface TraceContractToolRules {
182
+ /**
183
+ * Unconditional tool presence invariant. Every named tool must appear at least
184
+ * once. Do not use for cache-hit or alternate-path shortcuts — prefer
185
+ * `observations.required` until `alternatives.anyOf` ships (planned 6.20.0).
186
+ *
187
+ * @see docs/TRACE-CONTRACTS.md
188
+ */
182
189
  required?: string[];
183
190
  /** Alias of `required` (TraceContract v2 normalization). */
184
191
  requiredTools?: string[];
@@ -187,6 +194,25 @@ interface TraceContractToolRules {
187
194
  forbiddenTools?: string[];
188
195
  allowed?: string[];
189
196
  maxCalls?: number;
197
+ /**
198
+ * Required tool order as adjacent first-occurrence pairs (start/encounter order).
199
+ *
200
+ * `[A, B, C]` expands to “A before B” and “B before C”, each comparing the
201
+ * first occurrence of the named tool. Unlisted intermediate tools are
202
+ * allowed. Later repetitions do not invalidate an earlier valid order.
203
+ *
204
+ * TraceContract `requiredOrder` **implies presence**: every listed name is
205
+ * added to the effective required-tool set. Low-level `createToolOrderingRule`
206
+ * alone may still pass vacuously when an endpoint is missing.
207
+ *
208
+ * This is **not** causal happens-before. Overlapping intervals emit a
209
+ * non-failing overlap warning. Planned modes (6.20.0, GitHub #308):
210
+ * `happens-before`, `all-occurrences`.
211
+ *
212
+ * @see docs/TRACE-CONTRACTS.md
213
+ * @beta Available through `agent-inspect/checks`. Additive changes may ship
214
+ * in minor releases; breaking changes require a future major.
215
+ */
190
216
  requiredOrder?: string[];
191
217
  }
192
218
  interface TraceContractLlmRules {
@@ -212,8 +238,7 @@ interface TraceContractInput {
212
238
  * already-normalized `TraceReadResult`. The checks engine does not read files
213
239
  * or reparse source payloads.
214
240
  *
215
- * @experimental Available through `agent-inspect/checks`; the checks API may
216
- * evolve during the v1.x experimental period.
241
+ * @experimental Available through `agent-inspect/checks`. Additive changes may ship in minor releases; breaking changes require a future major.
217
242
  */
218
243
  interface TraceCheckInput {
219
244
  read: TraceReadResult;
package/dist/index.d.ts CHANGED
@@ -179,6 +179,13 @@ interface TraceContractRunRules {
179
179
  maxDurationMs?: number;
180
180
  }
181
181
  interface TraceContractToolRules {
182
+ /**
183
+ * Unconditional tool presence invariant. Every named tool must appear at least
184
+ * once. Do not use for cache-hit or alternate-path shortcuts — prefer
185
+ * `observations.required` until `alternatives.anyOf` ships (planned 6.20.0).
186
+ *
187
+ * @see docs/TRACE-CONTRACTS.md
188
+ */
182
189
  required?: string[];
183
190
  /** Alias of `required` (TraceContract v2 normalization). */
184
191
  requiredTools?: string[];
@@ -187,6 +194,25 @@ interface TraceContractToolRules {
187
194
  forbiddenTools?: string[];
188
195
  allowed?: string[];
189
196
  maxCalls?: number;
197
+ /**
198
+ * Required tool order as adjacent first-occurrence pairs (start/encounter order).
199
+ *
200
+ * `[A, B, C]` expands to “A before B” and “B before C”, each comparing the
201
+ * first occurrence of the named tool. Unlisted intermediate tools are
202
+ * allowed. Later repetitions do not invalidate an earlier valid order.
203
+ *
204
+ * TraceContract `requiredOrder` **implies presence**: every listed name is
205
+ * added to the effective required-tool set. Low-level `createToolOrderingRule`
206
+ * alone may still pass vacuously when an endpoint is missing.
207
+ *
208
+ * This is **not** causal happens-before. Overlapping intervals emit a
209
+ * non-failing overlap warning. Planned modes (6.20.0, GitHub #308):
210
+ * `happens-before`, `all-occurrences`.
211
+ *
212
+ * @see docs/TRACE-CONTRACTS.md
213
+ * @beta Available through `agent-inspect/checks`. Additive changes may ship
214
+ * in minor releases; breaking changes require a future major.
215
+ */
190
216
  requiredOrder?: string[];
191
217
  }
192
218
  interface TraceContractLlmRules {
@@ -212,8 +238,7 @@ interface TraceContractInput {
212
238
  * already-normalized `TraceReadResult`. The checks engine does not read files
213
239
  * or reparse source payloads.
214
240
  *
215
- * @experimental Available through `agent-inspect/checks`; the checks API may
216
- * evolve during the v1.x experimental period.
241
+ * @experimental Available through `agent-inspect/checks`. Additive changes may ship in minor releases; breaking changes require a future major.
217
242
  */
218
243
  interface TraceCheckInput {
219
244
  read: TraceReadResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-inspect/jest",
3
- "version": "6.17.4",
3
+ "version": "6.17.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Jest reporter and experimental TraceContract matchers for AgentInspect local evidence",
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "agent-inspect": "6.17.4"
45
+ "agent-inspect": "6.17.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "jest": "^30.2.0"