agent-inspect 6.22.0 → 6.23.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/docs/TRACE-CONTRACTS.md +56 -0
- package/package.json +1 -1
- package/packages/cli/dist/{chunk-CHBYF4LE.mjs → chunk-BVQO5CWA.mjs} +2 -2
- package/packages/cli/dist/{chunk-CHBYF4LE.mjs.map → chunk-BVQO5CWA.mjs.map} +1 -1
- package/packages/cli/dist/index.cjs +27 -1
- package/packages/cli/dist/index.cjs.map +1 -1
- package/packages/cli/dist/index.mjs +4 -4
- package/packages/cli/dist/index.mjs.map +1 -1
- package/packages/cli/dist/{src-MY5WIBPF.mjs → src-Y4NXOO2K.mjs} +3 -3
- package/packages/cli/dist/{src-MY5WIBPF.mjs.map → src-Y4NXOO2K.mjs.map} +1 -1
- package/packages/core/dist/advanced.cjs.map +1 -1
- package/packages/core/dist/advanced.mjs +2 -2
- package/packages/core/dist/checks.cjs +726 -50
- package/packages/core/dist/checks.cjs.map +1 -1
- package/packages/core/dist/checks.d.cts +174 -1
- package/packages/core/dist/checks.d.ts +174 -1
- package/packages/core/dist/checks.mjs +1 -1
- package/packages/core/dist/{chunk-OG3GAWCX.mjs → chunk-VMDCDWBE.mjs} +680 -7
- package/packages/core/dist/chunk-VMDCDWBE.mjs.map +1 -0
- package/packages/core/dist/chunk-OG3GAWCX.mjs.map +0 -1
|
@@ -223,6 +223,141 @@ declare function resolveTraceContractScope(input: TraceCheckInput, scope: TraceC
|
|
|
223
223
|
diagnostics: TraceCheckDiagnostic[];
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Declared-versus-enforced control checks for TraceContract (6.23).
|
|
228
|
+
*
|
|
229
|
+
* A stored declaration is not proof of enforcement.
|
|
230
|
+
*
|
|
231
|
+
* @experimental
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
type ControlStage = "declared" | "presented" | "validated" | "enforced" | "observed" | "accepted";
|
|
235
|
+
interface TraceContractControlRules {
|
|
236
|
+
/**
|
|
237
|
+
* Tools declared/presented to the agent (inline). Distinct from `enforcedTools`.
|
|
238
|
+
*/
|
|
239
|
+
declaredTools?: string[];
|
|
240
|
+
/**
|
|
241
|
+
* Tools the harness claims to enforce (inline allowlist).
|
|
242
|
+
*/
|
|
243
|
+
enforcedTools?: string[];
|
|
244
|
+
/**
|
|
245
|
+
* RUN/event attribute holding a string[] of declared tool names.
|
|
246
|
+
* Used when `declaredTools` is omitted.
|
|
247
|
+
*/
|
|
248
|
+
declaredToolsAttribute?: string;
|
|
249
|
+
/**
|
|
250
|
+
* RUN/event attribute holding a string[] of enforced tool names.
|
|
251
|
+
*/
|
|
252
|
+
enforcedToolsAttribute?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Fail when both declared and enforced sets resolve and differ.
|
|
255
|
+
*/
|
|
256
|
+
requireDeclaredMatchesEnforced?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Fail when any observed finished tool is outside the enforced set.
|
|
259
|
+
*/
|
|
260
|
+
requireObservedWithinEnforced?: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Fail when any observed finished tool is outside the declared set.
|
|
263
|
+
*/
|
|
264
|
+
requireObservedWithinDeclared?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Require observation names for control stages (default `control.<stage>`).
|
|
267
|
+
*/
|
|
268
|
+
requiredStages?: Array<{
|
|
269
|
+
stage: ControlStage;
|
|
270
|
+
/** Observation name; defaults to `control.<stage>`. */
|
|
271
|
+
observation?: string;
|
|
272
|
+
}>;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Retry / side-effect safety checks for TraceContract (6.23).
|
|
277
|
+
*
|
|
278
|
+
* Uses explicit attempt identity from session workflow metadata.
|
|
279
|
+
* AgentInspect evaluates; it does not perform retries.
|
|
280
|
+
*
|
|
281
|
+
* @experimental
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
interface TraceContractRetryRules {
|
|
285
|
+
/**
|
|
286
|
+
* Maximum attempts per `operationId` (or `attemptOf` grouping).
|
|
287
|
+
* Counts distinct `attemptId` values when present, else finished tool/LLM events.
|
|
288
|
+
*/
|
|
289
|
+
maxAttempts?: number;
|
|
290
|
+
/**
|
|
291
|
+
* When true, every operation with attempts must include a non-running terminal event.
|
|
292
|
+
*/
|
|
293
|
+
requireTerminalResult?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Fail when `fallbackOf` is set without a prior error attempt for the referenced operation.
|
|
296
|
+
*/
|
|
297
|
+
fallbackOnlyAfterFailure?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Tool names treated as non-idempotent. A later attempt after an `ok` occurrence fails
|
|
300
|
+
* unless idempotency / no-side-effect evidence is present on the retry.
|
|
301
|
+
*/
|
|
302
|
+
nonIdempotentTools?: string[];
|
|
303
|
+
/**
|
|
304
|
+
* When true, retries require `idempotencyKey` or `attributes.noSideEffect === true`.
|
|
305
|
+
*/
|
|
306
|
+
requireIdempotencyEvidenceForRetry?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* When true, recovered success paths must still retain at least one error attempt event.
|
|
309
|
+
*/
|
|
310
|
+
requireRecoveredFailureVisible?: boolean;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Resolve an RFC 6901 JSON Pointer against a JSON-like value.
|
|
315
|
+
* Returns `{ found: false }` when the path does not exist.
|
|
316
|
+
*/
|
|
317
|
+
declare function resolveJsonPointer(document: unknown, pointer: string): {
|
|
318
|
+
found: true;
|
|
319
|
+
value: unknown;
|
|
320
|
+
} | {
|
|
321
|
+
found: false;
|
|
322
|
+
};
|
|
323
|
+
type ToolArgumentOperator = "exists" | "type" | "equals" | "oneOf";
|
|
324
|
+
type ToolArgumentOccurrence = "first" | "last" | "any" | "all";
|
|
325
|
+
interface ToolArgumentCheck {
|
|
326
|
+
tool: string;
|
|
327
|
+
path: string;
|
|
328
|
+
operator: ToolArgumentOperator;
|
|
329
|
+
occurrence?: ToolArgumentOccurrence;
|
|
330
|
+
/** Required for `equals`. */
|
|
331
|
+
expected?: unknown;
|
|
332
|
+
/** Required for `oneOf`. */
|
|
333
|
+
oneOf?: readonly unknown[];
|
|
334
|
+
/** Required for `type` (`string` | `number` | `boolean` | `object` | `array` | `null`). */
|
|
335
|
+
type?: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
336
|
+
}
|
|
337
|
+
type ToolArgumentEval = {
|
|
338
|
+
status: "pass";
|
|
339
|
+
} | {
|
|
340
|
+
status: "fail";
|
|
341
|
+
message: string;
|
|
342
|
+
code: string;
|
|
343
|
+
} | {
|
|
344
|
+
status: "unavailable";
|
|
345
|
+
message: string;
|
|
346
|
+
code: "AI_CHECK_TOOL_ARGUMENT_EVIDENCE_UNAVAILABLE";
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Extract structured tool-argument evidence from a tool event.
|
|
350
|
+
* Preview-only strings and digests do not count as structured evidence.
|
|
351
|
+
*/
|
|
352
|
+
declare function extractToolArgumentPayload(event: {
|
|
353
|
+
attributes?: Record<string, unknown>;
|
|
354
|
+
inputSummary?: unknown;
|
|
355
|
+
}): {
|
|
356
|
+
present: boolean;
|
|
357
|
+
value: unknown;
|
|
358
|
+
};
|
|
359
|
+
declare function evaluateToolArgumentValue(value: unknown, check: ToolArgumentCheck, evidencePresent: boolean): ToolArgumentEval;
|
|
360
|
+
|
|
226
361
|
/**
|
|
227
362
|
* @experimental Typed trace contract input. Evolves during v6.5.x.
|
|
228
363
|
*/
|
|
@@ -277,6 +412,32 @@ interface TraceContractToolRules {
|
|
|
277
412
|
* @beta Available through `agent-inspect/checks`.
|
|
278
413
|
*/
|
|
279
414
|
requiredOrderMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
415
|
+
/**
|
|
416
|
+
* Bounded structured tool-argument checks (JSON Pointer + limited operators).
|
|
417
|
+
*
|
|
418
|
+
* Missing structured evidence fails closed as unevaluable (not pass).
|
|
419
|
+
* Findings never embed full actual inputs.
|
|
420
|
+
*
|
|
421
|
+
* @experimental Additive in 6.23.
|
|
422
|
+
*/
|
|
423
|
+
arguments?: ToolArgumentCheck[];
|
|
424
|
+
/**
|
|
425
|
+
* Default occurrence mode for `orderRules` when a rule omits `occurrenceMode`.
|
|
426
|
+
*
|
|
427
|
+
* @experimental Additive in 6.23.
|
|
428
|
+
*/
|
|
429
|
+
defaultOccurrenceMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
430
|
+
/**
|
|
431
|
+
* Mixed per-pair ordering rules (additive alongside `requiredOrder`).
|
|
432
|
+
*
|
|
433
|
+
* @experimental Additive in 6.23.
|
|
434
|
+
*/
|
|
435
|
+
orderRules?: Array<{
|
|
436
|
+
before: string;
|
|
437
|
+
after: string;
|
|
438
|
+
occurrenceMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
439
|
+
requireEndpoints?: boolean;
|
|
440
|
+
}>;
|
|
280
441
|
}
|
|
281
442
|
interface TraceContractLlmRules {
|
|
282
443
|
maxCalls?: number;
|
|
@@ -344,6 +505,18 @@ type TraceContractBody = {
|
|
|
344
505
|
tools?: TraceContractToolRules;
|
|
345
506
|
llm?: TraceContractLlmRules;
|
|
346
507
|
observations?: TraceContractObservationRules;
|
|
508
|
+
/**
|
|
509
|
+
* Declared-versus-enforced control invariants.
|
|
510
|
+
*
|
|
511
|
+
* @experimental Additive in 6.23.
|
|
512
|
+
*/
|
|
513
|
+
controls?: TraceContractControlRules;
|
|
514
|
+
/**
|
|
515
|
+
* Retry / side-effect safety using explicit attempt identity.
|
|
516
|
+
*
|
|
517
|
+
* @experimental Additive in 6.23.
|
|
518
|
+
*/
|
|
519
|
+
retry?: TraceContractRetryRules;
|
|
347
520
|
};
|
|
348
521
|
interface TraceContractInput extends TraceContractBody {
|
|
349
522
|
/**
|
|
@@ -412,4 +585,4 @@ declare function lintTraceContract(contract: TraceContract): TraceContractLintDi
|
|
|
412
585
|
*/
|
|
413
586
|
declare function explainTraceContract(contract: TraceContract): string[];
|
|
414
587
|
|
|
415
|
-
export { type DerivedFailureConfidence, type DerivedFailureFact, type DerivedFailureRole, type FailureRoleCounts, LogicalProjectionDiagnostic, LogicalTraceEvent, type SemanticParitySummary, TraceCheckDiagnostic, TraceCheckInput, TraceCheckResult, type TraceContract, type TraceContractAlternativeBranch, type TraceContractAlternatives, type TraceContractBody, type TraceContractInput, type TraceContractLintDiagnostic, type TraceContractLlmRules, type TraceContractObservationProvenance, type TraceContractObservationRules, type TraceContractRunRules, type TraceContractScope, type TraceContractToolRules, type TraceFacts, type TraceRelationship, type TraceRelationshipConfidence, type TraceRelationshipDiagnostic, type TraceRelationshipType, buildTraceFacts, defineTraceContract, deriveFailureFacts, deriveRelationshipFacts, evaluateTraceContract, evaluateTraceContractRead, explainTraceContract, lintTraceContract, resolveTraceContractScope, summarizeSemanticParity, workflowMetadataForRun };
|
|
588
|
+
export { type ControlStage, type DerivedFailureConfidence, type DerivedFailureFact, type DerivedFailureRole, type FailureRoleCounts, LogicalProjectionDiagnostic, LogicalTraceEvent, type SemanticParitySummary, type ToolArgumentCheck, type ToolArgumentOccurrence, type ToolArgumentOperator, TraceCheckDiagnostic, TraceCheckInput, TraceCheckResult, type TraceContract, type TraceContractAlternativeBranch, type TraceContractAlternatives, type TraceContractBody, type TraceContractControlRules, type TraceContractInput, type TraceContractLintDiagnostic, type TraceContractLlmRules, type TraceContractObservationProvenance, type TraceContractObservationRules, type TraceContractRetryRules, type TraceContractRunRules, type TraceContractScope, type TraceContractToolRules, type TraceFacts, type TraceRelationship, type TraceRelationshipConfidence, type TraceRelationshipDiagnostic, type TraceRelationshipType, buildTraceFacts, defineTraceContract, deriveFailureFacts, deriveRelationshipFacts, evaluateToolArgumentValue, evaluateTraceContract, evaluateTraceContractRead, explainTraceContract, extractToolArgumentPayload, lintTraceContract, resolveJsonPointer, resolveTraceContractScope, summarizeSemanticParity, workflowMetadataForRun };
|
|
@@ -223,6 +223,141 @@ declare function resolveTraceContractScope(input: TraceCheckInput, scope: TraceC
|
|
|
223
223
|
diagnostics: TraceCheckDiagnostic[];
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
+
/**
|
|
227
|
+
* Declared-versus-enforced control checks for TraceContract (6.23).
|
|
228
|
+
*
|
|
229
|
+
* A stored declaration is not proof of enforcement.
|
|
230
|
+
*
|
|
231
|
+
* @experimental
|
|
232
|
+
*/
|
|
233
|
+
|
|
234
|
+
type ControlStage = "declared" | "presented" | "validated" | "enforced" | "observed" | "accepted";
|
|
235
|
+
interface TraceContractControlRules {
|
|
236
|
+
/**
|
|
237
|
+
* Tools declared/presented to the agent (inline). Distinct from `enforcedTools`.
|
|
238
|
+
*/
|
|
239
|
+
declaredTools?: string[];
|
|
240
|
+
/**
|
|
241
|
+
* Tools the harness claims to enforce (inline allowlist).
|
|
242
|
+
*/
|
|
243
|
+
enforcedTools?: string[];
|
|
244
|
+
/**
|
|
245
|
+
* RUN/event attribute holding a string[] of declared tool names.
|
|
246
|
+
* Used when `declaredTools` is omitted.
|
|
247
|
+
*/
|
|
248
|
+
declaredToolsAttribute?: string;
|
|
249
|
+
/**
|
|
250
|
+
* RUN/event attribute holding a string[] of enforced tool names.
|
|
251
|
+
*/
|
|
252
|
+
enforcedToolsAttribute?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Fail when both declared and enforced sets resolve and differ.
|
|
255
|
+
*/
|
|
256
|
+
requireDeclaredMatchesEnforced?: boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Fail when any observed finished tool is outside the enforced set.
|
|
259
|
+
*/
|
|
260
|
+
requireObservedWithinEnforced?: boolean;
|
|
261
|
+
/**
|
|
262
|
+
* Fail when any observed finished tool is outside the declared set.
|
|
263
|
+
*/
|
|
264
|
+
requireObservedWithinDeclared?: boolean;
|
|
265
|
+
/**
|
|
266
|
+
* Require observation names for control stages (default `control.<stage>`).
|
|
267
|
+
*/
|
|
268
|
+
requiredStages?: Array<{
|
|
269
|
+
stage: ControlStage;
|
|
270
|
+
/** Observation name; defaults to `control.<stage>`. */
|
|
271
|
+
observation?: string;
|
|
272
|
+
}>;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Retry / side-effect safety checks for TraceContract (6.23).
|
|
277
|
+
*
|
|
278
|
+
* Uses explicit attempt identity from session workflow metadata.
|
|
279
|
+
* AgentInspect evaluates; it does not perform retries.
|
|
280
|
+
*
|
|
281
|
+
* @experimental
|
|
282
|
+
*/
|
|
283
|
+
|
|
284
|
+
interface TraceContractRetryRules {
|
|
285
|
+
/**
|
|
286
|
+
* Maximum attempts per `operationId` (or `attemptOf` grouping).
|
|
287
|
+
* Counts distinct `attemptId` values when present, else finished tool/LLM events.
|
|
288
|
+
*/
|
|
289
|
+
maxAttempts?: number;
|
|
290
|
+
/**
|
|
291
|
+
* When true, every operation with attempts must include a non-running terminal event.
|
|
292
|
+
*/
|
|
293
|
+
requireTerminalResult?: boolean;
|
|
294
|
+
/**
|
|
295
|
+
* Fail when `fallbackOf` is set without a prior error attempt for the referenced operation.
|
|
296
|
+
*/
|
|
297
|
+
fallbackOnlyAfterFailure?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Tool names treated as non-idempotent. A later attempt after an `ok` occurrence fails
|
|
300
|
+
* unless idempotency / no-side-effect evidence is present on the retry.
|
|
301
|
+
*/
|
|
302
|
+
nonIdempotentTools?: string[];
|
|
303
|
+
/**
|
|
304
|
+
* When true, retries require `idempotencyKey` or `attributes.noSideEffect === true`.
|
|
305
|
+
*/
|
|
306
|
+
requireIdempotencyEvidenceForRetry?: boolean;
|
|
307
|
+
/**
|
|
308
|
+
* When true, recovered success paths must still retain at least one error attempt event.
|
|
309
|
+
*/
|
|
310
|
+
requireRecoveredFailureVisible?: boolean;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Resolve an RFC 6901 JSON Pointer against a JSON-like value.
|
|
315
|
+
* Returns `{ found: false }` when the path does not exist.
|
|
316
|
+
*/
|
|
317
|
+
declare function resolveJsonPointer(document: unknown, pointer: string): {
|
|
318
|
+
found: true;
|
|
319
|
+
value: unknown;
|
|
320
|
+
} | {
|
|
321
|
+
found: false;
|
|
322
|
+
};
|
|
323
|
+
type ToolArgumentOperator = "exists" | "type" | "equals" | "oneOf";
|
|
324
|
+
type ToolArgumentOccurrence = "first" | "last" | "any" | "all";
|
|
325
|
+
interface ToolArgumentCheck {
|
|
326
|
+
tool: string;
|
|
327
|
+
path: string;
|
|
328
|
+
operator: ToolArgumentOperator;
|
|
329
|
+
occurrence?: ToolArgumentOccurrence;
|
|
330
|
+
/** Required for `equals`. */
|
|
331
|
+
expected?: unknown;
|
|
332
|
+
/** Required for `oneOf`. */
|
|
333
|
+
oneOf?: readonly unknown[];
|
|
334
|
+
/** Required for `type` (`string` | `number` | `boolean` | `object` | `array` | `null`). */
|
|
335
|
+
type?: "string" | "number" | "boolean" | "object" | "array" | "null";
|
|
336
|
+
}
|
|
337
|
+
type ToolArgumentEval = {
|
|
338
|
+
status: "pass";
|
|
339
|
+
} | {
|
|
340
|
+
status: "fail";
|
|
341
|
+
message: string;
|
|
342
|
+
code: string;
|
|
343
|
+
} | {
|
|
344
|
+
status: "unavailable";
|
|
345
|
+
message: string;
|
|
346
|
+
code: "AI_CHECK_TOOL_ARGUMENT_EVIDENCE_UNAVAILABLE";
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Extract structured tool-argument evidence from a tool event.
|
|
350
|
+
* Preview-only strings and digests do not count as structured evidence.
|
|
351
|
+
*/
|
|
352
|
+
declare function extractToolArgumentPayload(event: {
|
|
353
|
+
attributes?: Record<string, unknown>;
|
|
354
|
+
inputSummary?: unknown;
|
|
355
|
+
}): {
|
|
356
|
+
present: boolean;
|
|
357
|
+
value: unknown;
|
|
358
|
+
};
|
|
359
|
+
declare function evaluateToolArgumentValue(value: unknown, check: ToolArgumentCheck, evidencePresent: boolean): ToolArgumentEval;
|
|
360
|
+
|
|
226
361
|
/**
|
|
227
362
|
* @experimental Typed trace contract input. Evolves during v6.5.x.
|
|
228
363
|
*/
|
|
@@ -277,6 +412,32 @@ interface TraceContractToolRules {
|
|
|
277
412
|
* @beta Available through `agent-inspect/checks`.
|
|
278
413
|
*/
|
|
279
414
|
requiredOrderMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
415
|
+
/**
|
|
416
|
+
* Bounded structured tool-argument checks (JSON Pointer + limited operators).
|
|
417
|
+
*
|
|
418
|
+
* Missing structured evidence fails closed as unevaluable (not pass).
|
|
419
|
+
* Findings never embed full actual inputs.
|
|
420
|
+
*
|
|
421
|
+
* @experimental Additive in 6.23.
|
|
422
|
+
*/
|
|
423
|
+
arguments?: ToolArgumentCheck[];
|
|
424
|
+
/**
|
|
425
|
+
* Default occurrence mode for `orderRules` when a rule omits `occurrenceMode`.
|
|
426
|
+
*
|
|
427
|
+
* @experimental Additive in 6.23.
|
|
428
|
+
*/
|
|
429
|
+
defaultOccurrenceMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
430
|
+
/**
|
|
431
|
+
* Mixed per-pair ordering rules (additive alongside `requiredOrder`).
|
|
432
|
+
*
|
|
433
|
+
* @experimental Additive in 6.23.
|
|
434
|
+
*/
|
|
435
|
+
orderRules?: Array<{
|
|
436
|
+
before: string;
|
|
437
|
+
after: string;
|
|
438
|
+
occurrenceMode?: "first-occurrence" | "happens-before" | "all-occurrences";
|
|
439
|
+
requireEndpoints?: boolean;
|
|
440
|
+
}>;
|
|
280
441
|
}
|
|
281
442
|
interface TraceContractLlmRules {
|
|
282
443
|
maxCalls?: number;
|
|
@@ -344,6 +505,18 @@ type TraceContractBody = {
|
|
|
344
505
|
tools?: TraceContractToolRules;
|
|
345
506
|
llm?: TraceContractLlmRules;
|
|
346
507
|
observations?: TraceContractObservationRules;
|
|
508
|
+
/**
|
|
509
|
+
* Declared-versus-enforced control invariants.
|
|
510
|
+
*
|
|
511
|
+
* @experimental Additive in 6.23.
|
|
512
|
+
*/
|
|
513
|
+
controls?: TraceContractControlRules;
|
|
514
|
+
/**
|
|
515
|
+
* Retry / side-effect safety using explicit attempt identity.
|
|
516
|
+
*
|
|
517
|
+
* @experimental Additive in 6.23.
|
|
518
|
+
*/
|
|
519
|
+
retry?: TraceContractRetryRules;
|
|
347
520
|
};
|
|
348
521
|
interface TraceContractInput extends TraceContractBody {
|
|
349
522
|
/**
|
|
@@ -412,4 +585,4 @@ declare function lintTraceContract(contract: TraceContract): TraceContractLintDi
|
|
|
412
585
|
*/
|
|
413
586
|
declare function explainTraceContract(contract: TraceContract): string[];
|
|
414
587
|
|
|
415
|
-
export { type DerivedFailureConfidence, type DerivedFailureFact, type DerivedFailureRole, type FailureRoleCounts, LogicalProjectionDiagnostic, LogicalTraceEvent, type SemanticParitySummary, TraceCheckDiagnostic, TraceCheckInput, TraceCheckResult, type TraceContract, type TraceContractAlternativeBranch, type TraceContractAlternatives, type TraceContractBody, type TraceContractInput, type TraceContractLintDiagnostic, type TraceContractLlmRules, type TraceContractObservationProvenance, type TraceContractObservationRules, type TraceContractRunRules, type TraceContractScope, type TraceContractToolRules, type TraceFacts, type TraceRelationship, type TraceRelationshipConfidence, type TraceRelationshipDiagnostic, type TraceRelationshipType, buildTraceFacts, defineTraceContract, deriveFailureFacts, deriveRelationshipFacts, evaluateTraceContract, evaluateTraceContractRead, explainTraceContract, lintTraceContract, resolveTraceContractScope, summarizeSemanticParity, workflowMetadataForRun };
|
|
588
|
+
export { type ControlStage, type DerivedFailureConfidence, type DerivedFailureFact, type DerivedFailureRole, type FailureRoleCounts, LogicalProjectionDiagnostic, LogicalTraceEvent, type SemanticParitySummary, type ToolArgumentCheck, type ToolArgumentOccurrence, type ToolArgumentOperator, TraceCheckDiagnostic, TraceCheckInput, TraceCheckResult, type TraceContract, type TraceContractAlternativeBranch, type TraceContractAlternatives, type TraceContractBody, type TraceContractControlRules, type TraceContractInput, type TraceContractLintDiagnostic, type TraceContractLlmRules, type TraceContractObservationProvenance, type TraceContractObservationRules, type TraceContractRetryRules, type TraceContractRunRules, type TraceContractScope, type TraceContractToolRules, type TraceFacts, type TraceRelationship, type TraceRelationshipConfidence, type TraceRelationshipDiagnostic, type TraceRelationshipType, buildTraceFacts, defineTraceContract, deriveFailureFacts, deriveRelationshipFacts, evaluateToolArgumentValue, evaluateTraceContract, evaluateTraceContractRead, explainTraceContract, extractToolArgumentPayload, lintTraceContract, resolveJsonPointer, resolveTraceContractScope, summarizeSemanticParity, workflowMetadataForRun };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { buildTraceFacts, createBaselineRegressionRule, createDecisionRule, createGuardrailRule, createLlmUsageRule, createMaxStepDurationRule, createObservedOutcomeRule, createRequireCompletedRule, createRetrievalRule, createRunDepthRule, createRunDurationRule, createRunEventCountRule, createRunStatusRule, createSafetyOversizedAttributeRule, createSafetyRawContentRule, createSafetyRedactionRule, createSafetySecretPatternRule, createStallDetectionRule, createStructureCycleRule, createStructureIncompleteRule, createStructureOrphanRule, createStructureParallelWidthRule, createStructureRelationshipRule, createToolFailureRule, createToolOrderingRule, createToolUsageRule, defineTraceContract, deriveFailureFacts, deriveRelationshipFacts, evaluateTraceContract, evaluateTraceContractRead, explainTraceContract, lintTraceContract, projectLogicalEvents, resolveCanonicalToolName, resolveTraceContractScope, runTraceChecks, summarizeSemanticParity, workflowMetadataForRun } from './chunk-
|
|
1
|
+
export { buildTraceFacts, createBaselineRegressionRule, createDecisionRule, createGuardrailRule, createLlmUsageRule, createMaxStepDurationRule, createObservedOutcomeRule, createRequireCompletedRule, createRetrievalRule, createRunDepthRule, createRunDurationRule, createRunEventCountRule, createRunStatusRule, createSafetyOversizedAttributeRule, createSafetyRawContentRule, createSafetyRedactionRule, createSafetySecretPatternRule, createStallDetectionRule, createStructureCycleRule, createStructureIncompleteRule, createStructureOrphanRule, createStructureParallelWidthRule, createStructureRelationshipRule, createToolFailureRule, createToolOrderingRule, createToolUsageRule, defineTraceContract, deriveFailureFacts, deriveRelationshipFacts, evaluateToolArgumentValue, evaluateTraceContract, evaluateTraceContractRead, explainTraceContract, extractToolArgumentPayload, lintTraceContract, projectLogicalEvents, resolveCanonicalToolName, resolveJsonPointer, resolveTraceContractScope, runTraceChecks, summarizeSemanticParity, workflowMetadataForRun } from './chunk-VMDCDWBE.mjs';
|
|
2
2
|
import './chunk-R4SSYU6D.mjs';
|
|
3
3
|
import './chunk-U25RHRSU.mjs';
|
|
4
4
|
import './chunk-VU6O5QAH.mjs';
|