eval-quality 1.2.0 → 1.3.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/core/schemas/artifact.d.ts +45 -6
- package/dist/core/schemas/eval-contract.d.ts +15 -2
- package/dist/core/schemas/probe.d.ts +45 -6
- package/dist/core/schemas/sensitivity-witness.d.ts +41 -4
- package/dist/core/schemas/sensitivity-witness.js +13 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/schemas/eval-contract.schema.json +96 -1
- package/schemas/probe.schema.json +192 -2
|
@@ -828,7 +828,7 @@ export declare const INTERCHANGE_ARTIFACTS: {
|
|
|
828
828
|
legId: z.ZodString;
|
|
829
829
|
interfaceId: z.ZodString;
|
|
830
830
|
operationId: z.ZodString;
|
|
831
|
-
inputs: z.ZodObject<{
|
|
831
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
832
832
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
833
833
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
834
834
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -838,7 +838,20 @@ export declare const INTERCHANGE_ARTIFACTS: {
|
|
|
838
838
|
}, z.core.$strict>, z.ZodObject<{
|
|
839
839
|
kind: z.ZodLiteral<"absent">;
|
|
840
840
|
}, z.core.$strict>], "kind">;
|
|
841
|
-
}, z.core.$strict
|
|
841
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
842
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
843
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
844
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
845
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
846
|
+
kind: z.ZodLiteral<"json">;
|
|
847
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
848
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
849
|
+
kind: z.ZodLiteral<"text">;
|
|
850
|
+
value: z.ZodString;
|
|
851
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
852
|
+
kind: z.ZodLiteral<"absent">;
|
|
853
|
+
}, z.core.$strict>], "kind">;
|
|
854
|
+
}, z.core.$strict>]>;
|
|
842
855
|
}, z.core.$strict>>;
|
|
843
856
|
}, z.core.$strict>;
|
|
844
857
|
readonly priorArt: 'eval-contract';
|
|
@@ -1404,7 +1417,7 @@ export declare const INTERCHANGE_ARTIFACTS: {
|
|
|
1404
1417
|
legId: z.ZodString;
|
|
1405
1418
|
interfaceId: z.ZodString;
|
|
1406
1419
|
operationId: z.ZodString;
|
|
1407
|
-
inputs: z.ZodObject<{
|
|
1420
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
1408
1421
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1409
1422
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1410
1423
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -1414,7 +1427,20 @@ export declare const INTERCHANGE_ARTIFACTS: {
|
|
|
1414
1427
|
}, z.core.$strict>, z.ZodObject<{
|
|
1415
1428
|
kind: z.ZodLiteral<"absent">;
|
|
1416
1429
|
}, z.core.$strict>], "kind">;
|
|
1417
|
-
}, z.core.$strict
|
|
1430
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1431
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1432
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1433
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1434
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1435
|
+
kind: z.ZodLiteral<"json">;
|
|
1436
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
1437
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1438
|
+
kind: z.ZodLiteral<"text">;
|
|
1439
|
+
value: z.ZodString;
|
|
1440
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1441
|
+
kind: z.ZodLiteral<"absent">;
|
|
1442
|
+
}, z.core.$strict>], "kind">;
|
|
1443
|
+
}, z.core.$strict>]>;
|
|
1418
1444
|
relation: z.ZodType<import("./expression.ts").Expression, unknown, z.core.$ZodTypeInternals<import("./expression.ts").Expression, unknown>>;
|
|
1419
1445
|
}, z.core.$strict>>;
|
|
1420
1446
|
}, z.core.$strict>>;
|
|
@@ -1587,7 +1613,7 @@ export declare const INTERCHANGE_ARTIFACTS: {
|
|
|
1587
1613
|
legId: z.ZodString;
|
|
1588
1614
|
interfaceId: z.ZodString;
|
|
1589
1615
|
operationId: z.ZodString;
|
|
1590
|
-
inputs: z.ZodObject<{
|
|
1616
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
1591
1617
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1592
1618
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1593
1619
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -1597,7 +1623,20 @@ export declare const INTERCHANGE_ARTIFACTS: {
|
|
|
1597
1623
|
}, z.core.$strict>, z.ZodObject<{
|
|
1598
1624
|
kind: z.ZodLiteral<"absent">;
|
|
1599
1625
|
}, z.core.$strict>], "kind">;
|
|
1600
|
-
}, z.core.$strict
|
|
1626
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1627
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1628
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
1629
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1630
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1631
|
+
kind: z.ZodLiteral<"json">;
|
|
1632
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
1633
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1634
|
+
kind: z.ZodLiteral<"text">;
|
|
1635
|
+
value: z.ZodString;
|
|
1636
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1637
|
+
kind: z.ZodLiteral<"absent">;
|
|
1638
|
+
}, z.core.$strict>], "kind">;
|
|
1639
|
+
}, z.core.$strict>]>;
|
|
1601
1640
|
relation: z.ZodType<import("./expression.ts").Expression, unknown, z.core.$ZodTypeInternals<import("./expression.ts").Expression, unknown>>;
|
|
1602
1641
|
}, z.core.$strict>>;
|
|
1603
1642
|
}, z.core.$strict>>;
|
|
@@ -924,7 +924,7 @@ export declare const EvalContract: z.ZodObject<{
|
|
|
924
924
|
legId: z.ZodString;
|
|
925
925
|
interfaceId: z.ZodString;
|
|
926
926
|
operationId: z.ZodString;
|
|
927
|
-
inputs: z.ZodObject<{
|
|
927
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
928
928
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
929
929
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
930
930
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -934,7 +934,20 @@ export declare const EvalContract: z.ZodObject<{
|
|
|
934
934
|
}, z.core.$strict>, z.ZodObject<{
|
|
935
935
|
kind: z.ZodLiteral<"absent">;
|
|
936
936
|
}, z.core.$strict>], "kind">;
|
|
937
|
-
}, z.core.$strict
|
|
937
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
938
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
939
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
940
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
941
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
942
|
+
kind: z.ZodLiteral<"json">;
|
|
943
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
944
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
945
|
+
kind: z.ZodLiteral<"text">;
|
|
946
|
+
value: z.ZodString;
|
|
947
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
948
|
+
kind: z.ZodLiteral<"absent">;
|
|
949
|
+
}, z.core.$strict>], "kind">;
|
|
950
|
+
}, z.core.$strict>]>;
|
|
938
951
|
}, z.core.$strict>>;
|
|
939
952
|
}, z.core.$strict>;
|
|
940
953
|
export type EvalContract = z.infer<typeof EvalContract>;
|
|
@@ -42,7 +42,7 @@ export declare const Defect: z.ZodObject<{
|
|
|
42
42
|
legId: z.ZodString;
|
|
43
43
|
interfaceId: z.ZodString;
|
|
44
44
|
operationId: z.ZodString;
|
|
45
|
-
inputs: z.ZodObject<{
|
|
45
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
46
46
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
47
47
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
48
48
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -52,7 +52,20 @@ export declare const Defect: z.ZodObject<{
|
|
|
52
52
|
}, z.core.$strict>, z.ZodObject<{
|
|
53
53
|
kind: z.ZodLiteral<"absent">;
|
|
54
54
|
}, z.core.$strict>], "kind">;
|
|
55
|
-
}, z.core.$strict
|
|
55
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
56
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
57
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
58
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
59
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"json">;
|
|
61
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
62
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"text">;
|
|
64
|
+
value: z.ZodString;
|
|
65
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
66
|
+
kind: z.ZodLiteral<"absent">;
|
|
67
|
+
}, z.core.$strict>], "kind">;
|
|
68
|
+
}, z.core.$strict>]>;
|
|
56
69
|
relation: z.ZodType<import("./expression.ts").Expression, unknown, z.core.$ZodTypeInternals<import("./expression.ts").Expression, unknown>>;
|
|
57
70
|
}, z.core.$strict>>;
|
|
58
71
|
}, z.core.$strict>;
|
|
@@ -234,7 +247,7 @@ export declare const Probe: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
247
|
legId: z.ZodString;
|
|
235
248
|
interfaceId: z.ZodString;
|
|
236
249
|
operationId: z.ZodString;
|
|
237
|
-
inputs: z.ZodObject<{
|
|
250
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
238
251
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
239
252
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
240
253
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -244,7 +257,20 @@ export declare const Probe: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
244
257
|
}, z.core.$strict>, z.ZodObject<{
|
|
245
258
|
kind: z.ZodLiteral<"absent">;
|
|
246
259
|
}, z.core.$strict>], "kind">;
|
|
247
|
-
}, z.core.$strict
|
|
260
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
261
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
262
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
263
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
264
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
265
|
+
kind: z.ZodLiteral<"json">;
|
|
266
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
267
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
268
|
+
kind: z.ZodLiteral<"text">;
|
|
269
|
+
value: z.ZodString;
|
|
270
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
271
|
+
kind: z.ZodLiteral<"absent">;
|
|
272
|
+
}, z.core.$strict>], "kind">;
|
|
273
|
+
}, z.core.$strict>]>;
|
|
248
274
|
relation: z.ZodType<import("./expression.ts").Expression, unknown, z.core.$ZodTypeInternals<import("./expression.ts").Expression, unknown>>;
|
|
249
275
|
}, z.core.$strict>>;
|
|
250
276
|
}, z.core.$strict>>;
|
|
@@ -417,7 +443,7 @@ export declare const Probe: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
417
443
|
legId: z.ZodString;
|
|
418
444
|
interfaceId: z.ZodString;
|
|
419
445
|
operationId: z.ZodString;
|
|
420
|
-
inputs: z.ZodObject<{
|
|
446
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
421
447
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
422
448
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
423
449
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -427,7 +453,20 @@ export declare const Probe: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
427
453
|
}, z.core.$strict>, z.ZodObject<{
|
|
428
454
|
kind: z.ZodLiteral<"absent">;
|
|
429
455
|
}, z.core.$strict>], "kind">;
|
|
430
|
-
}, z.core.$strict
|
|
456
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
457
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
458
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
459
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
460
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
461
|
+
kind: z.ZodLiteral<"json">;
|
|
462
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
463
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
464
|
+
kind: z.ZodLiteral<"text">;
|
|
465
|
+
value: z.ZodString;
|
|
466
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
467
|
+
kind: z.ZodLiteral<"absent">;
|
|
468
|
+
}, z.core.$strict>], "kind">;
|
|
469
|
+
}, z.core.$strict>]>;
|
|
431
470
|
relation: z.ZodType<import("./expression.ts").Expression, unknown, z.core.$ZodTypeInternals<import("./expression.ts").Expression, unknown>>;
|
|
432
471
|
}, z.core.$strict>>;
|
|
433
472
|
}, z.core.$strict>>;
|
|
@@ -197,12 +197,23 @@ export type SensitivityWitness = z.infer<typeof SensitivityWitness>;
|
|
|
197
197
|
* A different mechanism from AD-40's DEFECT SIGNATURE, which matches a
|
|
198
198
|
* scoring-side finding against an observation. This one never enters a score; it
|
|
199
199
|
* makes "every declared seeded fault observed to fire" decidable at pre-flight.
|
|
200
|
+
*
|
|
201
|
+
* `inputs` is the same union a sensitivity leg takes. It was `ApiWitnessInputs`
|
|
202
|
+
* alone, which made a seeded defect against a command-line system under test
|
|
203
|
+
* unrepresentable in both directions: command channels failed the `Probe`
|
|
204
|
+
* parse, and transport channels reached `requestOf` and threw
|
|
205
|
+
* `undeclared-mandatory-input` for supplying transport channels to an operation
|
|
206
|
+
* that runs behind a command. A `null` witness parses, so the only way through
|
|
207
|
+
* was to declare the defect unobservable, which pre-flight records as a failed
|
|
208
|
+
* `seeded-fault-fired` check. Every `defect` and `zero-action` probe against a
|
|
209
|
+
* command was therefore unscoreable. 0.3.0 widened the contract side and left
|
|
210
|
+
* this one and `FixtureReset` behind.
|
|
200
211
|
*/
|
|
201
212
|
export declare const ManifestationWitness: z.ZodObject<{
|
|
202
213
|
legId: z.ZodString;
|
|
203
214
|
interfaceId: z.ZodString;
|
|
204
215
|
operationId: z.ZodString;
|
|
205
|
-
inputs: z.ZodObject<{
|
|
216
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
206
217
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
207
218
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
208
219
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -212,7 +223,20 @@ export declare const ManifestationWitness: z.ZodObject<{
|
|
|
212
223
|
}, z.core.$strict>, z.ZodObject<{
|
|
213
224
|
kind: z.ZodLiteral<"absent">;
|
|
214
225
|
}, z.core.$strict>], "kind">;
|
|
215
|
-
}, z.core.$strict
|
|
226
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
227
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
228
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
229
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
230
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
231
|
+
kind: z.ZodLiteral<"json">;
|
|
232
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
233
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
234
|
+
kind: z.ZodLiteral<"text">;
|
|
235
|
+
value: z.ZodString;
|
|
236
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
237
|
+
kind: z.ZodLiteral<"absent">;
|
|
238
|
+
}, z.core.$strict>], "kind">;
|
|
239
|
+
}, z.core.$strict>]>;
|
|
216
240
|
relation: z.ZodType<Expression, unknown, z.core.$ZodTypeInternals<Expression, unknown>>;
|
|
217
241
|
}, z.core.$strict>;
|
|
218
242
|
export type ManifestationWitness = z.infer<typeof ManifestationWitness>;
|
|
@@ -225,7 +249,7 @@ export declare const FixtureReset: z.ZodObject<{
|
|
|
225
249
|
legId: z.ZodString;
|
|
226
250
|
interfaceId: z.ZodString;
|
|
227
251
|
operationId: z.ZodString;
|
|
228
|
-
inputs: z.ZodObject<{
|
|
252
|
+
inputs: z.ZodUnion<readonly [z.ZodObject<{
|
|
229
253
|
path: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
230
254
|
query: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
231
255
|
header: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
@@ -235,6 +259,19 @@ export declare const FixtureReset: z.ZodObject<{
|
|
|
235
259
|
}, z.core.$strict>, z.ZodObject<{
|
|
236
260
|
kind: z.ZodLiteral<"absent">;
|
|
237
261
|
}, z.core.$strict>], "kind">;
|
|
238
|
-
}, z.core.$strict
|
|
262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
263
|
+
argument: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
264
|
+
option: z.ZodType<import("./primitives.ts").JsonObject, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonObject, unknown>>;
|
|
265
|
+
environment: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
266
|
+
stdin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
267
|
+
kind: z.ZodLiteral<"json">;
|
|
268
|
+
value: z.ZodType<import("./primitives.ts").JsonValue, unknown, z.core.$ZodTypeInternals<import("./primitives.ts").JsonValue, unknown>>;
|
|
269
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
270
|
+
kind: z.ZodLiteral<"text">;
|
|
271
|
+
value: z.ZodString;
|
|
272
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
273
|
+
kind: z.ZodLiteral<"absent">;
|
|
274
|
+
}, z.core.$strict>], "kind">;
|
|
275
|
+
}, z.core.$strict>]>;
|
|
239
276
|
}, z.core.$strict>;
|
|
240
277
|
export type FixtureReset = z.infer<typeof FixtureReset>;
|
|
@@ -121,12 +121,23 @@ export const SensitivityWitness = z.strictObject({
|
|
|
121
121
|
* A different mechanism from AD-40's DEFECT SIGNATURE, which matches a
|
|
122
122
|
* scoring-side finding against an observation. This one never enters a score; it
|
|
123
123
|
* makes "every declared seeded fault observed to fire" decidable at pre-flight.
|
|
124
|
+
*
|
|
125
|
+
* `inputs` is the same union a sensitivity leg takes. It was `ApiWitnessInputs`
|
|
126
|
+
* alone, which made a seeded defect against a command-line system under test
|
|
127
|
+
* unrepresentable in both directions: command channels failed the `Probe`
|
|
128
|
+
* parse, and transport channels reached `requestOf` and threw
|
|
129
|
+
* `undeclared-mandatory-input` for supplying transport channels to an operation
|
|
130
|
+
* that runs behind a command. A `null` witness parses, so the only way through
|
|
131
|
+
* was to declare the defect unobservable, which pre-flight records as a failed
|
|
132
|
+
* `seeded-fault-fired` check. Every `defect` and `zero-action` probe against a
|
|
133
|
+
* command was therefore unscoreable. 0.3.0 widened the contract side and left
|
|
134
|
+
* this one and `FixtureReset` behind.
|
|
124
135
|
*/
|
|
125
136
|
export const ManifestationWitness = z.strictObject({
|
|
126
137
|
legId: Identifier,
|
|
127
138
|
interfaceId: Identifier,
|
|
128
139
|
operationId: Identifier,
|
|
129
|
-
inputs:
|
|
140
|
+
inputs: WitnessInputs,
|
|
130
141
|
relation: Expression,
|
|
131
142
|
});
|
|
132
143
|
/**
|
|
@@ -138,5 +149,5 @@ export const FixtureReset = z.strictObject({
|
|
|
138
149
|
legId: Identifier,
|
|
139
150
|
interfaceId: Identifier,
|
|
140
151
|
operationId: Identifier,
|
|
141
|
-
inputs:
|
|
152
|
+
inputs: WitnessInputs,
|
|
142
153
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -12,4 +12,4 @@ export type { ScoringPolicy } from './core/schemas/scoring-policy.ts';
|
|
|
12
12
|
export type { SealedEvaluatorBrief } from './core/schemas/sealed-evaluator-brief.ts';
|
|
13
13
|
export type { SealedRunRecord } from './core/schemas/sealed-run-record.ts';
|
|
14
14
|
export type { FixtureReset, ManifestationWitness, SensitivityWitness, SensitivityWitnessLeg, WitnessChannel, WitnessInputs, } from './core/schemas/sensitivity-witness.ts';
|
|
15
|
-
export declare const VERSION = "1.
|
|
15
|
+
export declare const VERSION = "1.3.0";
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1566,7 +1566,102 @@
|
|
|
1566
1566
|
"description": "A kebab-case slug. Excludes \"/\" and \"~\" so an identifier can be embedded in an interaction-rooted pointer without escaping."
|
|
1567
1567
|
},
|
|
1568
1568
|
"inputs": {
|
|
1569
|
-
"
|
|
1569
|
+
"anyOf": [
|
|
1570
|
+
{
|
|
1571
|
+
"$ref": "#/$defs/WitnessInputs"
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"type": "object",
|
|
1575
|
+
"properties": {
|
|
1576
|
+
"argument": {
|
|
1577
|
+
"type": "object",
|
|
1578
|
+
"propertyNames": {
|
|
1579
|
+
"type": "string"
|
|
1580
|
+
},
|
|
1581
|
+
"additionalProperties": {
|
|
1582
|
+
"$ref": "#/$defs/JsonValue"
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
"option": {
|
|
1586
|
+
"type": "object",
|
|
1587
|
+
"propertyNames": {
|
|
1588
|
+
"type": "string"
|
|
1589
|
+
},
|
|
1590
|
+
"additionalProperties": {
|
|
1591
|
+
"$ref": "#/$defs/JsonValue"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"environment": {
|
|
1595
|
+
"type": "object",
|
|
1596
|
+
"propertyNames": {
|
|
1597
|
+
"type": "string",
|
|
1598
|
+
"minLength": 1
|
|
1599
|
+
},
|
|
1600
|
+
"additionalProperties": {
|
|
1601
|
+
"type": "string"
|
|
1602
|
+
}
|
|
1603
|
+
},
|
|
1604
|
+
"stdin": {
|
|
1605
|
+
"oneOf": [
|
|
1606
|
+
{
|
|
1607
|
+
"type": "object",
|
|
1608
|
+
"properties": {
|
|
1609
|
+
"kind": {
|
|
1610
|
+
"type": "string",
|
|
1611
|
+
"const": "json"
|
|
1612
|
+
},
|
|
1613
|
+
"value": {
|
|
1614
|
+
"$ref": "#/$defs/JsonValue"
|
|
1615
|
+
}
|
|
1616
|
+
},
|
|
1617
|
+
"required": [
|
|
1618
|
+
"kind",
|
|
1619
|
+
"value"
|
|
1620
|
+
],
|
|
1621
|
+
"additionalProperties": false
|
|
1622
|
+
},
|
|
1623
|
+
{
|
|
1624
|
+
"type": "object",
|
|
1625
|
+
"properties": {
|
|
1626
|
+
"kind": {
|
|
1627
|
+
"type": "string",
|
|
1628
|
+
"const": "text"
|
|
1629
|
+
},
|
|
1630
|
+
"value": {
|
|
1631
|
+
"type": "string"
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
"required": [
|
|
1635
|
+
"kind",
|
|
1636
|
+
"value"
|
|
1637
|
+
],
|
|
1638
|
+
"additionalProperties": false
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"type": "object",
|
|
1642
|
+
"properties": {
|
|
1643
|
+
"kind": {
|
|
1644
|
+
"type": "string",
|
|
1645
|
+
"const": "absent"
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
"required": [
|
|
1649
|
+
"kind"
|
|
1650
|
+
],
|
|
1651
|
+
"additionalProperties": false
|
|
1652
|
+
}
|
|
1653
|
+
]
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
"required": [
|
|
1657
|
+
"argument",
|
|
1658
|
+
"option",
|
|
1659
|
+
"environment",
|
|
1660
|
+
"stdin"
|
|
1661
|
+
],
|
|
1662
|
+
"additionalProperties": false
|
|
1663
|
+
}
|
|
1664
|
+
]
|
|
1570
1665
|
}
|
|
1571
1666
|
},
|
|
1572
1667
|
"required": [
|
|
@@ -308,7 +308,102 @@
|
|
|
308
308
|
"description": "A kebab-case slug. Excludes \"/\" and \"~\" so an identifier can be embedded in an interaction-rooted pointer without escaping."
|
|
309
309
|
},
|
|
310
310
|
"inputs": {
|
|
311
|
-
"
|
|
311
|
+
"anyOf": [
|
|
312
|
+
{
|
|
313
|
+
"$ref": "#/$defs/WitnessInputs"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"type": "object",
|
|
317
|
+
"properties": {
|
|
318
|
+
"argument": {
|
|
319
|
+
"type": "object",
|
|
320
|
+
"propertyNames": {
|
|
321
|
+
"type": "string"
|
|
322
|
+
},
|
|
323
|
+
"additionalProperties": {
|
|
324
|
+
"$ref": "#/$defs/JsonValue"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
"option": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"propertyNames": {
|
|
330
|
+
"type": "string"
|
|
331
|
+
},
|
|
332
|
+
"additionalProperties": {
|
|
333
|
+
"$ref": "#/$defs/JsonValue"
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
"environment": {
|
|
337
|
+
"type": "object",
|
|
338
|
+
"propertyNames": {
|
|
339
|
+
"type": "string",
|
|
340
|
+
"minLength": 1
|
|
341
|
+
},
|
|
342
|
+
"additionalProperties": {
|
|
343
|
+
"type": "string"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
"stdin": {
|
|
347
|
+
"oneOf": [
|
|
348
|
+
{
|
|
349
|
+
"type": "object",
|
|
350
|
+
"properties": {
|
|
351
|
+
"kind": {
|
|
352
|
+
"type": "string",
|
|
353
|
+
"const": "json"
|
|
354
|
+
},
|
|
355
|
+
"value": {
|
|
356
|
+
"$ref": "#/$defs/JsonValue"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"required": [
|
|
360
|
+
"kind",
|
|
361
|
+
"value"
|
|
362
|
+
],
|
|
363
|
+
"additionalProperties": false
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"type": "object",
|
|
367
|
+
"properties": {
|
|
368
|
+
"kind": {
|
|
369
|
+
"type": "string",
|
|
370
|
+
"const": "text"
|
|
371
|
+
},
|
|
372
|
+
"value": {
|
|
373
|
+
"type": "string"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": [
|
|
377
|
+
"kind",
|
|
378
|
+
"value"
|
|
379
|
+
],
|
|
380
|
+
"additionalProperties": false
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"type": "object",
|
|
384
|
+
"properties": {
|
|
385
|
+
"kind": {
|
|
386
|
+
"type": "string",
|
|
387
|
+
"const": "absent"
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"required": [
|
|
391
|
+
"kind"
|
|
392
|
+
],
|
|
393
|
+
"additionalProperties": false
|
|
394
|
+
}
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
"required": [
|
|
399
|
+
"argument",
|
|
400
|
+
"option",
|
|
401
|
+
"environment",
|
|
402
|
+
"stdin"
|
|
403
|
+
],
|
|
404
|
+
"additionalProperties": false
|
|
405
|
+
}
|
|
406
|
+
]
|
|
312
407
|
},
|
|
313
408
|
"relation": {
|
|
314
409
|
"$ref": "#/$defs/Expression"
|
|
@@ -668,7 +763,102 @@
|
|
|
668
763
|
"description": "A kebab-case slug. Excludes \"/\" and \"~\" so an identifier can be embedded in an interaction-rooted pointer without escaping."
|
|
669
764
|
},
|
|
670
765
|
"inputs": {
|
|
671
|
-
"
|
|
766
|
+
"anyOf": [
|
|
767
|
+
{
|
|
768
|
+
"$ref": "#/$defs/WitnessInputs"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"type": "object",
|
|
772
|
+
"properties": {
|
|
773
|
+
"argument": {
|
|
774
|
+
"type": "object",
|
|
775
|
+
"propertyNames": {
|
|
776
|
+
"type": "string"
|
|
777
|
+
},
|
|
778
|
+
"additionalProperties": {
|
|
779
|
+
"$ref": "#/$defs/JsonValue"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"option": {
|
|
783
|
+
"type": "object",
|
|
784
|
+
"propertyNames": {
|
|
785
|
+
"type": "string"
|
|
786
|
+
},
|
|
787
|
+
"additionalProperties": {
|
|
788
|
+
"$ref": "#/$defs/JsonValue"
|
|
789
|
+
}
|
|
790
|
+
},
|
|
791
|
+
"environment": {
|
|
792
|
+
"type": "object",
|
|
793
|
+
"propertyNames": {
|
|
794
|
+
"type": "string",
|
|
795
|
+
"minLength": 1
|
|
796
|
+
},
|
|
797
|
+
"additionalProperties": {
|
|
798
|
+
"type": "string"
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"stdin": {
|
|
802
|
+
"oneOf": [
|
|
803
|
+
{
|
|
804
|
+
"type": "object",
|
|
805
|
+
"properties": {
|
|
806
|
+
"kind": {
|
|
807
|
+
"type": "string",
|
|
808
|
+
"const": "json"
|
|
809
|
+
},
|
|
810
|
+
"value": {
|
|
811
|
+
"$ref": "#/$defs/JsonValue"
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"required": [
|
|
815
|
+
"kind",
|
|
816
|
+
"value"
|
|
817
|
+
],
|
|
818
|
+
"additionalProperties": false
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
"type": "object",
|
|
822
|
+
"properties": {
|
|
823
|
+
"kind": {
|
|
824
|
+
"type": "string",
|
|
825
|
+
"const": "text"
|
|
826
|
+
},
|
|
827
|
+
"value": {
|
|
828
|
+
"type": "string"
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"required": [
|
|
832
|
+
"kind",
|
|
833
|
+
"value"
|
|
834
|
+
],
|
|
835
|
+
"additionalProperties": false
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"type": "object",
|
|
839
|
+
"properties": {
|
|
840
|
+
"kind": {
|
|
841
|
+
"type": "string",
|
|
842
|
+
"const": "absent"
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
"required": [
|
|
846
|
+
"kind"
|
|
847
|
+
],
|
|
848
|
+
"additionalProperties": false
|
|
849
|
+
}
|
|
850
|
+
]
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"required": [
|
|
854
|
+
"argument",
|
|
855
|
+
"option",
|
|
856
|
+
"environment",
|
|
857
|
+
"stdin"
|
|
858
|
+
],
|
|
859
|
+
"additionalProperties": false
|
|
860
|
+
}
|
|
861
|
+
]
|
|
672
862
|
},
|
|
673
863
|
"relation": {
|
|
674
864
|
"$ref": "#/$defs/Expression"
|