iterate-kernel 0.1.0-draft.1

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.
Files changed (49) hide show
  1. package/README.md +56 -0
  2. package/dist/canonical-json.d.ts +21 -0
  3. package/dist/canonical-json.d.ts.map +1 -0
  4. package/dist/canonical-json.js +31 -0
  5. package/dist/canonical-json.js.map +1 -0
  6. package/dist/decision-log-entry.d.ts +34 -0
  7. package/dist/decision-log-entry.d.ts.map +1 -0
  8. package/dist/decision-log-entry.js +17 -0
  9. package/dist/decision-log-entry.js.map +1 -0
  10. package/dist/decision-log.d.ts +142 -0
  11. package/dist/decision-log.d.ts.map +1 -0
  12. package/dist/decision-log.js +288 -0
  13. package/dist/decision-log.js.map +1 -0
  14. package/dist/dimension-context.d.ts +402 -0
  15. package/dist/dimension-context.d.ts.map +1 -0
  16. package/dist/dimension-context.js +226 -0
  17. package/dist/dimension-context.js.map +1 -0
  18. package/dist/errors.d.ts +15 -0
  19. package/dist/errors.d.ts.map +1 -0
  20. package/dist/errors.js +18 -0
  21. package/dist/errors.js.map +1 -0
  22. package/dist/evidence-decision.d.ts +44 -0
  23. package/dist/evidence-decision.d.ts.map +1 -0
  24. package/dist/evidence-decision.js +88 -0
  25. package/dist/evidence-decision.js.map +1 -0
  26. package/dist/evidence-pack.d.ts +1884 -0
  27. package/dist/evidence-pack.d.ts.map +1 -0
  28. package/dist/evidence-pack.js +243 -0
  29. package/dist/evidence-pack.js.map +1 -0
  30. package/dist/index.d.ts +19 -0
  31. package/dist/index.d.ts.map +1 -0
  32. package/dist/index.js +19 -0
  33. package/dist/index.js.map +1 -0
  34. package/dist/parse.d.ts +22 -0
  35. package/dist/parse.d.ts.map +1 -0
  36. package/dist/parse.js +53 -0
  37. package/dist/parse.js.map +1 -0
  38. package/dist/recipe-config.d.ts +48 -0
  39. package/dist/recipe-config.d.ts.map +1 -0
  40. package/dist/recipe-config.js +20 -0
  41. package/dist/recipe-config.js.map +1 -0
  42. package/dist/schemas.d.ts +11 -0
  43. package/dist/schemas.d.ts.map +1 -0
  44. package/dist/schemas.js +19 -0
  45. package/dist/schemas.js.map +1 -0
  46. package/package.json +84 -0
  47. package/schemas/decision-log-entry.schema.json +45 -0
  48. package/schemas/evidence-pack.schema.json +359 -0
  49. package/schemas/recipe-config.schema.json +36 -0
@@ -0,0 +1,1884 @@
1
+ import { z } from "zod";
2
+ /** Crockford base32 (excludes I, L, O, U). 26 chars = 10 timestamp + 16 random. */
3
+ export declare const OPERATION_ID_PATTERN: RegExp;
4
+ /** ISO-8601 UTC with fixed millisecond precision, as emitted by both codecs. */
5
+ export declare const ISO_MILLIS_PATTERN: RegExp;
6
+ /** SHA-256 truncated to the first 16 bytes, lowercase hex (tree digest format). */
7
+ export declare const TREE_DIGEST_PATTERN: RegExp;
8
+ export declare const SELECTOR_MAX_LENGTH = 512;
9
+ export declare const EVIDENCE_SCHEMA_VERSION: "glasspane.evidence/0.1";
10
+ /**
11
+ * The schema label used before the Phase B freeze. P0 spec §4 keeps it
12
+ * read-compatible for ever ("冻结前历史值 0.1-draft 只读兼容"): packs archived
13
+ * under it carry the frozen body field for field — the frozen schema's own
14
+ * description still calls itself "schema v0.1-draft" — so the read path folds
15
+ * this label onto the frozen const instead of refusing them. Nothing on the
16
+ * write side may ever stamp it again.
17
+ */
18
+ export declare const LEGACY_EVIDENCE_SCHEMA_VERSION: "glasspane.evidence/0.1-draft";
19
+ export declare const AttributionLevelSchema: z.ZodEnum<["soft", "strong", "weak"]>;
20
+ export type AttributionLevel = z.infer<typeof AttributionLevelSchema>;
21
+ export declare const CircuitBreakerLevelSchema: z.ZodNumber;
22
+ export type CircuitBreakerLevel = z.infer<typeof CircuitBreakerLevelSchema>;
23
+ export declare const SelectorSchema: z.ZodObject<{
24
+ role: z.ZodString;
25
+ title: z.ZodOptional<z.ZodString>;
26
+ identifier: z.ZodOptional<z.ZodString>;
27
+ }, "strict", z.ZodTypeAny, {
28
+ role: string;
29
+ title?: string | undefined;
30
+ identifier?: string | undefined;
31
+ }, {
32
+ role: string;
33
+ title?: string | undefined;
34
+ identifier?: string | undefined;
35
+ }>;
36
+ export type Selector = z.infer<typeof SelectorSchema>;
37
+ export declare const ActionSchema: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
38
+ export type Action = z.infer<typeof ActionSchema>;
39
+ export declare const AssertionPropertySchema: z.ZodEnum<["title", "value", "role", "enabled", "focused"]>;
40
+ export type AssertionProperty = z.infer<typeof AssertionPropertySchema>;
41
+ export declare const StringOrBoolSchema: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
42
+ export type StringOrBool = z.infer<typeof StringOrBoolSchema>;
43
+ export declare const BoundsSchema: z.ZodObject<{
44
+ x: z.ZodNumber;
45
+ y: z.ZodNumber;
46
+ width: z.ZodNumber;
47
+ height: z.ZodNumber;
48
+ }, "strict", z.ZodTypeAny, {
49
+ x: number;
50
+ y: number;
51
+ width: number;
52
+ height: number;
53
+ }, {
54
+ x: number;
55
+ y: number;
56
+ width: number;
57
+ height: number;
58
+ }>;
59
+ export type Bounds = z.infer<typeof BoundsSchema>;
60
+ export declare const AxEventSignalSchema: z.ZodObject<{
61
+ treeDigestBefore: z.ZodString;
62
+ treeDigestAfter: z.ZodString;
63
+ nodeCount: z.ZodNumber;
64
+ axChanged: z.ZodBoolean;
65
+ latencyMs: z.ZodNumber;
66
+ }, "strict", z.ZodTypeAny, {
67
+ treeDigestBefore: string;
68
+ treeDigestAfter: string;
69
+ nodeCount: number;
70
+ axChanged: boolean;
71
+ latencyMs: number;
72
+ }, {
73
+ treeDigestBefore: string;
74
+ treeDigestAfter: string;
75
+ nodeCount: number;
76
+ axChanged: boolean;
77
+ latencyMs: number;
78
+ }>;
79
+ export type AxEventSignal = z.infer<typeof AxEventSignalSchema>;
80
+ export declare const PixelDiffSignalSchema: z.ZodObject<{
81
+ changedPixelRatio: z.ZodNumber;
82
+ bounds: z.ZodUnion<[z.ZodObject<{
83
+ x: z.ZodNumber;
84
+ y: z.ZodNumber;
85
+ width: z.ZodNumber;
86
+ height: z.ZodNumber;
87
+ }, "strict", z.ZodTypeAny, {
88
+ x: number;
89
+ y: number;
90
+ width: number;
91
+ height: number;
92
+ }, {
93
+ x: number;
94
+ y: number;
95
+ width: number;
96
+ height: number;
97
+ }>, z.ZodNull]>;
98
+ windowId: z.ZodNumber;
99
+ }, "strict", z.ZodTypeAny, {
100
+ changedPixelRatio: number;
101
+ bounds: {
102
+ x: number;
103
+ y: number;
104
+ width: number;
105
+ height: number;
106
+ } | null;
107
+ windowId: number;
108
+ }, {
109
+ changedPixelRatio: number;
110
+ bounds: {
111
+ x: number;
112
+ y: number;
113
+ width: number;
114
+ height: number;
115
+ } | null;
116
+ windowId: number;
117
+ }>;
118
+ export type PixelDiffSignal = z.infer<typeof PixelDiffSignalSchema>;
119
+ export declare const ResponsivenessSignalSchema: z.ZodObject<{
120
+ responsive: z.ZodBoolean;
121
+ pingMs: z.ZodNumber;
122
+ }, "strict", z.ZodTypeAny, {
123
+ responsive: boolean;
124
+ pingMs: number;
125
+ }, {
126
+ responsive: boolean;
127
+ pingMs: number;
128
+ }>;
129
+ export type ResponsivenessSignal = z.infer<typeof ResponsivenessSignalSchema>;
130
+ export declare const CrashSignalSchema: z.ZodObject<{
131
+ processAliveBefore: z.ZodBoolean;
132
+ processAliveAfter: z.ZodBoolean;
133
+ }, "strict", z.ZodTypeAny, {
134
+ processAliveBefore: boolean;
135
+ processAliveAfter: boolean;
136
+ }, {
137
+ processAliveBefore: boolean;
138
+ processAliveAfter: boolean;
139
+ }>;
140
+ export type CrashSignal = z.infer<typeof CrashSignalSchema>;
141
+ export declare const ActSignalSchema: z.ZodObject<{
142
+ selector: z.ZodObject<{
143
+ role: z.ZodString;
144
+ title: z.ZodOptional<z.ZodString>;
145
+ identifier: z.ZodOptional<z.ZodString>;
146
+ }, "strict", z.ZodTypeAny, {
147
+ role: string;
148
+ title?: string | undefined;
149
+ identifier?: string | undefined;
150
+ }, {
151
+ role: string;
152
+ title?: string | undefined;
153
+ identifier?: string | undefined;
154
+ }>;
155
+ action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
156
+ actConfirmed: z.ZodBoolean;
157
+ }, "strict", z.ZodTypeAny, {
158
+ selector: {
159
+ role: string;
160
+ title?: string | undefined;
161
+ identifier?: string | undefined;
162
+ };
163
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
164
+ actConfirmed: boolean;
165
+ }, {
166
+ selector: {
167
+ role: string;
168
+ title?: string | undefined;
169
+ identifier?: string | undefined;
170
+ };
171
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
172
+ actConfirmed: boolean;
173
+ }>;
174
+ export type ActSignal = z.infer<typeof ActSignalSchema>;
175
+ /** P6 §3.1: Z1 handler probe signal — present iff a probe connection served
176
+ * the act window; null stays the honest absence marker (Z5-only form). */
177
+ export declare const HandlerRefSchema: z.ZodObject<{
178
+ file: z.ZodString;
179
+ line: z.ZodNumber;
180
+ }, "strict", z.ZodTypeAny, {
181
+ file: string;
182
+ line: number;
183
+ }, {
184
+ file: string;
185
+ line: number;
186
+ }>;
187
+ export type HandlerRef = z.infer<typeof HandlerRefSchema>;
188
+ export declare const HandlerProbeSignalSchema: z.ZodObject<{
189
+ probeVersion: z.ZodString;
190
+ hitCount: z.ZodNumber;
191
+ handlers: z.ZodArray<z.ZodObject<{
192
+ file: z.ZodString;
193
+ line: z.ZodNumber;
194
+ }, "strict", z.ZodTypeAny, {
195
+ file: string;
196
+ line: number;
197
+ }, {
198
+ file: string;
199
+ line: number;
200
+ }>, "many">;
201
+ lateCount: z.ZodNumber;
202
+ }, "strict", z.ZodTypeAny, {
203
+ probeVersion: string;
204
+ hitCount: number;
205
+ handlers: {
206
+ file: string;
207
+ line: number;
208
+ }[];
209
+ lateCount: number;
210
+ }, {
211
+ probeVersion: string;
212
+ hitCount: number;
213
+ handlers: {
214
+ file: string;
215
+ line: number;
216
+ }[];
217
+ lateCount: number;
218
+ }>;
219
+ export type HandlerProbeSignal = z.infer<typeof HandlerProbeSignalSchema>;
220
+ export declare const StateEntrySchema: z.ZodObject<{
221
+ key: z.ZodString;
222
+ before: z.ZodString;
223
+ after: z.ZodString;
224
+ }, "strict", z.ZodTypeAny, {
225
+ key: string;
226
+ before: string;
227
+ after: string;
228
+ }, {
229
+ key: string;
230
+ before: string;
231
+ after: string;
232
+ }>;
233
+ export type StateEntry = z.infer<typeof StateEntrySchema>;
234
+ export declare const StateDiffSignalSchema: z.ZodObject<{
235
+ source: z.ZodEnum<["z1-macro", "z2-mirror", "z3-kvc"]>;
236
+ changed: z.ZodBoolean;
237
+ entries: z.ZodArray<z.ZodObject<{
238
+ key: z.ZodString;
239
+ before: z.ZodString;
240
+ after: z.ZodString;
241
+ }, "strict", z.ZodTypeAny, {
242
+ key: string;
243
+ before: string;
244
+ after: string;
245
+ }, {
246
+ key: string;
247
+ before: string;
248
+ after: string;
249
+ }>, "many">;
250
+ }, "strict", z.ZodTypeAny, {
251
+ entries: {
252
+ key: string;
253
+ before: string;
254
+ after: string;
255
+ }[];
256
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
257
+ changed: boolean;
258
+ }, {
259
+ entries: {
260
+ key: string;
261
+ before: string;
262
+ after: string;
263
+ }[];
264
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
265
+ changed: boolean;
266
+ }>;
267
+ export type StateDiffSignal = z.infer<typeof StateDiffSignalSchema>;
268
+ export declare const SignalsSchema: z.ZodObject<{
269
+ act: z.ZodObject<{
270
+ selector: z.ZodObject<{
271
+ role: z.ZodString;
272
+ title: z.ZodOptional<z.ZodString>;
273
+ identifier: z.ZodOptional<z.ZodString>;
274
+ }, "strict", z.ZodTypeAny, {
275
+ role: string;
276
+ title?: string | undefined;
277
+ identifier?: string | undefined;
278
+ }, {
279
+ role: string;
280
+ title?: string | undefined;
281
+ identifier?: string | undefined;
282
+ }>;
283
+ action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
284
+ actConfirmed: z.ZodBoolean;
285
+ }, "strict", z.ZodTypeAny, {
286
+ selector: {
287
+ role: string;
288
+ title?: string | undefined;
289
+ identifier?: string | undefined;
290
+ };
291
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
292
+ actConfirmed: boolean;
293
+ }, {
294
+ selector: {
295
+ role: string;
296
+ title?: string | undefined;
297
+ identifier?: string | undefined;
298
+ };
299
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
300
+ actConfirmed: boolean;
301
+ }>;
302
+ axEvent: z.ZodOptional<z.ZodObject<{
303
+ treeDigestBefore: z.ZodString;
304
+ treeDigestAfter: z.ZodString;
305
+ nodeCount: z.ZodNumber;
306
+ axChanged: z.ZodBoolean;
307
+ latencyMs: z.ZodNumber;
308
+ }, "strict", z.ZodTypeAny, {
309
+ treeDigestBefore: string;
310
+ treeDigestAfter: string;
311
+ nodeCount: number;
312
+ axChanged: boolean;
313
+ latencyMs: number;
314
+ }, {
315
+ treeDigestBefore: string;
316
+ treeDigestAfter: string;
317
+ nodeCount: number;
318
+ axChanged: boolean;
319
+ latencyMs: number;
320
+ }>>;
321
+ handlerProbe: z.ZodUnion<[z.ZodObject<{
322
+ probeVersion: z.ZodString;
323
+ hitCount: z.ZodNumber;
324
+ handlers: z.ZodArray<z.ZodObject<{
325
+ file: z.ZodString;
326
+ line: z.ZodNumber;
327
+ }, "strict", z.ZodTypeAny, {
328
+ file: string;
329
+ line: number;
330
+ }, {
331
+ file: string;
332
+ line: number;
333
+ }>, "many">;
334
+ lateCount: z.ZodNumber;
335
+ }, "strict", z.ZodTypeAny, {
336
+ probeVersion: string;
337
+ hitCount: number;
338
+ handlers: {
339
+ file: string;
340
+ line: number;
341
+ }[];
342
+ lateCount: number;
343
+ }, {
344
+ probeVersion: string;
345
+ hitCount: number;
346
+ handlers: {
347
+ file: string;
348
+ line: number;
349
+ }[];
350
+ lateCount: number;
351
+ }>, z.ZodNull]>;
352
+ stateDiff: z.ZodUnion<[z.ZodObject<{
353
+ source: z.ZodEnum<["z1-macro", "z2-mirror", "z3-kvc"]>;
354
+ changed: z.ZodBoolean;
355
+ entries: z.ZodArray<z.ZodObject<{
356
+ key: z.ZodString;
357
+ before: z.ZodString;
358
+ after: z.ZodString;
359
+ }, "strict", z.ZodTypeAny, {
360
+ key: string;
361
+ before: string;
362
+ after: string;
363
+ }, {
364
+ key: string;
365
+ before: string;
366
+ after: string;
367
+ }>, "many">;
368
+ }, "strict", z.ZodTypeAny, {
369
+ entries: {
370
+ key: string;
371
+ before: string;
372
+ after: string;
373
+ }[];
374
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
375
+ changed: boolean;
376
+ }, {
377
+ entries: {
378
+ key: string;
379
+ before: string;
380
+ after: string;
381
+ }[];
382
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
383
+ changed: boolean;
384
+ }>, z.ZodNull]>;
385
+ pixelDiff: z.ZodOptional<z.ZodObject<{
386
+ changedPixelRatio: z.ZodNumber;
387
+ bounds: z.ZodUnion<[z.ZodObject<{
388
+ x: z.ZodNumber;
389
+ y: z.ZodNumber;
390
+ width: z.ZodNumber;
391
+ height: z.ZodNumber;
392
+ }, "strict", z.ZodTypeAny, {
393
+ x: number;
394
+ y: number;
395
+ width: number;
396
+ height: number;
397
+ }, {
398
+ x: number;
399
+ y: number;
400
+ width: number;
401
+ height: number;
402
+ }>, z.ZodNull]>;
403
+ windowId: z.ZodNumber;
404
+ }, "strict", z.ZodTypeAny, {
405
+ changedPixelRatio: number;
406
+ bounds: {
407
+ x: number;
408
+ y: number;
409
+ width: number;
410
+ height: number;
411
+ } | null;
412
+ windowId: number;
413
+ }, {
414
+ changedPixelRatio: number;
415
+ bounds: {
416
+ x: number;
417
+ y: number;
418
+ width: number;
419
+ height: number;
420
+ } | null;
421
+ windowId: number;
422
+ }>>;
423
+ responsiveness: z.ZodOptional<z.ZodObject<{
424
+ responsive: z.ZodBoolean;
425
+ pingMs: z.ZodNumber;
426
+ }, "strict", z.ZodTypeAny, {
427
+ responsive: boolean;
428
+ pingMs: number;
429
+ }, {
430
+ responsive: boolean;
431
+ pingMs: number;
432
+ }>>;
433
+ crash: z.ZodOptional<z.ZodObject<{
434
+ processAliveBefore: z.ZodBoolean;
435
+ processAliveAfter: z.ZodBoolean;
436
+ }, "strict", z.ZodTypeAny, {
437
+ processAliveBefore: boolean;
438
+ processAliveAfter: boolean;
439
+ }, {
440
+ processAliveBefore: boolean;
441
+ processAliveAfter: boolean;
442
+ }>>;
443
+ }, "strict", z.ZodTypeAny, {
444
+ act: {
445
+ selector: {
446
+ role: string;
447
+ title?: string | undefined;
448
+ identifier?: string | undefined;
449
+ };
450
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
451
+ actConfirmed: boolean;
452
+ };
453
+ handlerProbe: {
454
+ probeVersion: string;
455
+ hitCount: number;
456
+ handlers: {
457
+ file: string;
458
+ line: number;
459
+ }[];
460
+ lateCount: number;
461
+ } | null;
462
+ stateDiff: {
463
+ entries: {
464
+ key: string;
465
+ before: string;
466
+ after: string;
467
+ }[];
468
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
469
+ changed: boolean;
470
+ } | null;
471
+ axEvent?: {
472
+ treeDigestBefore: string;
473
+ treeDigestAfter: string;
474
+ nodeCount: number;
475
+ axChanged: boolean;
476
+ latencyMs: number;
477
+ } | undefined;
478
+ pixelDiff?: {
479
+ changedPixelRatio: number;
480
+ bounds: {
481
+ x: number;
482
+ y: number;
483
+ width: number;
484
+ height: number;
485
+ } | null;
486
+ windowId: number;
487
+ } | undefined;
488
+ responsiveness?: {
489
+ responsive: boolean;
490
+ pingMs: number;
491
+ } | undefined;
492
+ crash?: {
493
+ processAliveBefore: boolean;
494
+ processAliveAfter: boolean;
495
+ } | undefined;
496
+ }, {
497
+ act: {
498
+ selector: {
499
+ role: string;
500
+ title?: string | undefined;
501
+ identifier?: string | undefined;
502
+ };
503
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
504
+ actConfirmed: boolean;
505
+ };
506
+ handlerProbe: {
507
+ probeVersion: string;
508
+ hitCount: number;
509
+ handlers: {
510
+ file: string;
511
+ line: number;
512
+ }[];
513
+ lateCount: number;
514
+ } | null;
515
+ stateDiff: {
516
+ entries: {
517
+ key: string;
518
+ before: string;
519
+ after: string;
520
+ }[];
521
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
522
+ changed: boolean;
523
+ } | null;
524
+ axEvent?: {
525
+ treeDigestBefore: string;
526
+ treeDigestAfter: string;
527
+ nodeCount: number;
528
+ axChanged: boolean;
529
+ latencyMs: number;
530
+ } | undefined;
531
+ pixelDiff?: {
532
+ changedPixelRatio: number;
533
+ bounds: {
534
+ x: number;
535
+ y: number;
536
+ width: number;
537
+ height: number;
538
+ } | null;
539
+ windowId: number;
540
+ } | undefined;
541
+ responsiveness?: {
542
+ responsive: boolean;
543
+ pingMs: number;
544
+ } | undefined;
545
+ crash?: {
546
+ processAliveBefore: boolean;
547
+ processAliveAfter: boolean;
548
+ } | undefined;
549
+ }>;
550
+ export type Signals = z.infer<typeof SignalsSchema>;
551
+ export declare const AttributionSchema: z.ZodObject<{
552
+ level: z.ZodEnum<["soft", "strong", "weak"]>;
553
+ contaminated: z.ZodBoolean;
554
+ }, "strict", z.ZodTypeAny, {
555
+ level: "soft" | "strong" | "weak";
556
+ contaminated: boolean;
557
+ }, {
558
+ level: "soft" | "strong" | "weak";
559
+ contaminated: boolean;
560
+ }>;
561
+ export type Attribution = z.infer<typeof AttributionSchema>;
562
+ export declare const CircuitBreakerSchema: z.ZodObject<{
563
+ level: z.ZodNumber;
564
+ reason: z.ZodOptional<z.ZodString>;
565
+ }, "strict", z.ZodTypeAny, {
566
+ level: number;
567
+ reason?: string | undefined;
568
+ }, {
569
+ level: number;
570
+ reason?: string | undefined;
571
+ }>;
572
+ export type CircuitBreaker = z.infer<typeof CircuitBreakerSchema>;
573
+ export declare const AssertionSchema: z.ZodObject<{
574
+ kind: z.ZodLiteral<"element_property">;
575
+ selector: z.ZodObject<{
576
+ role: z.ZodString;
577
+ title: z.ZodOptional<z.ZodString>;
578
+ identifier: z.ZodOptional<z.ZodString>;
579
+ }, "strict", z.ZodTypeAny, {
580
+ role: string;
581
+ title?: string | undefined;
582
+ identifier?: string | undefined;
583
+ }, {
584
+ role: string;
585
+ title?: string | undefined;
586
+ identifier?: string | undefined;
587
+ }>;
588
+ property: z.ZodEnum<["title", "value", "role", "enabled", "focused"]>;
589
+ expected: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
590
+ actual: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
591
+ passed: z.ZodBoolean;
592
+ }, "strict", z.ZodTypeAny, {
593
+ expected: string | boolean;
594
+ selector: {
595
+ role: string;
596
+ title?: string | undefined;
597
+ identifier?: string | undefined;
598
+ };
599
+ kind: "element_property";
600
+ property: "value" | "role" | "title" | "enabled" | "focused";
601
+ actual: string | boolean;
602
+ passed: boolean;
603
+ }, {
604
+ expected: string | boolean;
605
+ selector: {
606
+ role: string;
607
+ title?: string | undefined;
608
+ identifier?: string | undefined;
609
+ };
610
+ kind: "element_property";
611
+ property: "value" | "role" | "title" | "enabled" | "focused";
612
+ actual: string | boolean;
613
+ passed: boolean;
614
+ }>;
615
+ export type Assertion = z.infer<typeof AssertionSchema>;
616
+ export declare const DiagnosisClassSchema: z.ZodEnum<["T0", "T1", "T2", "T3", "T4", "T5", "T6", "T7", "T8", "T9", "NO_ANOMALY", "INCONCLUSIVE"]>;
617
+ export type DiagnosisClass = z.infer<typeof DiagnosisClassSchema>;
618
+ export declare const DiagnosisReportSchema: z.ZodObject<{
619
+ path: z.ZodString;
620
+ anomaly: z.ZodString;
621
+ evidence: z.ZodString;
622
+ next: z.ZodString;
623
+ }, "strict", z.ZodTypeAny, {
624
+ path: string;
625
+ anomaly: string;
626
+ evidence: string;
627
+ next: string;
628
+ }, {
629
+ path: string;
630
+ anomaly: string;
631
+ evidence: string;
632
+ next: string;
633
+ }>;
634
+ export type DiagnosisReport = z.infer<typeof DiagnosisReportSchema>;
635
+ export declare const DiagnosisSchema: z.ZodObject<{
636
+ class: z.ZodEnum<["T0", "T1", "T2", "T3", "T4", "T5", "T6", "T7", "T8", "T9", "NO_ANOMALY", "INCONCLUSIVE"]>;
637
+ report: z.ZodObject<{
638
+ path: z.ZodString;
639
+ anomaly: z.ZodString;
640
+ evidence: z.ZodString;
641
+ next: z.ZodString;
642
+ }, "strict", z.ZodTypeAny, {
643
+ path: string;
644
+ anomaly: string;
645
+ evidence: string;
646
+ next: string;
647
+ }, {
648
+ path: string;
649
+ anomaly: string;
650
+ evidence: string;
651
+ next: string;
652
+ }>;
653
+ }, "strict", z.ZodTypeAny, {
654
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
655
+ report: {
656
+ path: string;
657
+ anomaly: string;
658
+ evidence: string;
659
+ next: string;
660
+ };
661
+ }, {
662
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
663
+ report: {
664
+ path: string;
665
+ anomaly: string;
666
+ evidence: string;
667
+ next: string;
668
+ };
669
+ }>;
670
+ export type Diagnosis = z.infer<typeof DiagnosisSchema>;
671
+ export declare const EvidencePackSchema: z.ZodObject<{
672
+ schemaVersion: z.ZodLiteral<"glasspane.evidence/0.1">;
673
+ operationId: z.ZodString;
674
+ createdAt: z.ZodString;
675
+ attribution: z.ZodObject<{
676
+ level: z.ZodEnum<["soft", "strong", "weak"]>;
677
+ contaminated: z.ZodBoolean;
678
+ }, "strict", z.ZodTypeAny, {
679
+ level: "soft" | "strong" | "weak";
680
+ contaminated: boolean;
681
+ }, {
682
+ level: "soft" | "strong" | "weak";
683
+ contaminated: boolean;
684
+ }>;
685
+ circuitBreaker: z.ZodObject<{
686
+ level: z.ZodNumber;
687
+ reason: z.ZodOptional<z.ZodString>;
688
+ }, "strict", z.ZodTypeAny, {
689
+ level: number;
690
+ reason?: string | undefined;
691
+ }, {
692
+ level: number;
693
+ reason?: string | undefined;
694
+ }>;
695
+ signals: z.ZodObject<{
696
+ act: z.ZodObject<{
697
+ selector: z.ZodObject<{
698
+ role: z.ZodString;
699
+ title: z.ZodOptional<z.ZodString>;
700
+ identifier: z.ZodOptional<z.ZodString>;
701
+ }, "strict", z.ZodTypeAny, {
702
+ role: string;
703
+ title?: string | undefined;
704
+ identifier?: string | undefined;
705
+ }, {
706
+ role: string;
707
+ title?: string | undefined;
708
+ identifier?: string | undefined;
709
+ }>;
710
+ action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
711
+ actConfirmed: z.ZodBoolean;
712
+ }, "strict", z.ZodTypeAny, {
713
+ selector: {
714
+ role: string;
715
+ title?: string | undefined;
716
+ identifier?: string | undefined;
717
+ };
718
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
719
+ actConfirmed: boolean;
720
+ }, {
721
+ selector: {
722
+ role: string;
723
+ title?: string | undefined;
724
+ identifier?: string | undefined;
725
+ };
726
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
727
+ actConfirmed: boolean;
728
+ }>;
729
+ axEvent: z.ZodOptional<z.ZodObject<{
730
+ treeDigestBefore: z.ZodString;
731
+ treeDigestAfter: z.ZodString;
732
+ nodeCount: z.ZodNumber;
733
+ axChanged: z.ZodBoolean;
734
+ latencyMs: z.ZodNumber;
735
+ }, "strict", z.ZodTypeAny, {
736
+ treeDigestBefore: string;
737
+ treeDigestAfter: string;
738
+ nodeCount: number;
739
+ axChanged: boolean;
740
+ latencyMs: number;
741
+ }, {
742
+ treeDigestBefore: string;
743
+ treeDigestAfter: string;
744
+ nodeCount: number;
745
+ axChanged: boolean;
746
+ latencyMs: number;
747
+ }>>;
748
+ handlerProbe: z.ZodUnion<[z.ZodObject<{
749
+ probeVersion: z.ZodString;
750
+ hitCount: z.ZodNumber;
751
+ handlers: z.ZodArray<z.ZodObject<{
752
+ file: z.ZodString;
753
+ line: z.ZodNumber;
754
+ }, "strict", z.ZodTypeAny, {
755
+ file: string;
756
+ line: number;
757
+ }, {
758
+ file: string;
759
+ line: number;
760
+ }>, "many">;
761
+ lateCount: z.ZodNumber;
762
+ }, "strict", z.ZodTypeAny, {
763
+ probeVersion: string;
764
+ hitCount: number;
765
+ handlers: {
766
+ file: string;
767
+ line: number;
768
+ }[];
769
+ lateCount: number;
770
+ }, {
771
+ probeVersion: string;
772
+ hitCount: number;
773
+ handlers: {
774
+ file: string;
775
+ line: number;
776
+ }[];
777
+ lateCount: number;
778
+ }>, z.ZodNull]>;
779
+ stateDiff: z.ZodUnion<[z.ZodObject<{
780
+ source: z.ZodEnum<["z1-macro", "z2-mirror", "z3-kvc"]>;
781
+ changed: z.ZodBoolean;
782
+ entries: z.ZodArray<z.ZodObject<{
783
+ key: z.ZodString;
784
+ before: z.ZodString;
785
+ after: z.ZodString;
786
+ }, "strict", z.ZodTypeAny, {
787
+ key: string;
788
+ before: string;
789
+ after: string;
790
+ }, {
791
+ key: string;
792
+ before: string;
793
+ after: string;
794
+ }>, "many">;
795
+ }, "strict", z.ZodTypeAny, {
796
+ entries: {
797
+ key: string;
798
+ before: string;
799
+ after: string;
800
+ }[];
801
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
802
+ changed: boolean;
803
+ }, {
804
+ entries: {
805
+ key: string;
806
+ before: string;
807
+ after: string;
808
+ }[];
809
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
810
+ changed: boolean;
811
+ }>, z.ZodNull]>;
812
+ pixelDiff: z.ZodOptional<z.ZodObject<{
813
+ changedPixelRatio: z.ZodNumber;
814
+ bounds: z.ZodUnion<[z.ZodObject<{
815
+ x: z.ZodNumber;
816
+ y: z.ZodNumber;
817
+ width: z.ZodNumber;
818
+ height: z.ZodNumber;
819
+ }, "strict", z.ZodTypeAny, {
820
+ x: number;
821
+ y: number;
822
+ width: number;
823
+ height: number;
824
+ }, {
825
+ x: number;
826
+ y: number;
827
+ width: number;
828
+ height: number;
829
+ }>, z.ZodNull]>;
830
+ windowId: z.ZodNumber;
831
+ }, "strict", z.ZodTypeAny, {
832
+ changedPixelRatio: number;
833
+ bounds: {
834
+ x: number;
835
+ y: number;
836
+ width: number;
837
+ height: number;
838
+ } | null;
839
+ windowId: number;
840
+ }, {
841
+ changedPixelRatio: number;
842
+ bounds: {
843
+ x: number;
844
+ y: number;
845
+ width: number;
846
+ height: number;
847
+ } | null;
848
+ windowId: number;
849
+ }>>;
850
+ responsiveness: z.ZodOptional<z.ZodObject<{
851
+ responsive: z.ZodBoolean;
852
+ pingMs: z.ZodNumber;
853
+ }, "strict", z.ZodTypeAny, {
854
+ responsive: boolean;
855
+ pingMs: number;
856
+ }, {
857
+ responsive: boolean;
858
+ pingMs: number;
859
+ }>>;
860
+ crash: z.ZodOptional<z.ZodObject<{
861
+ processAliveBefore: z.ZodBoolean;
862
+ processAliveAfter: z.ZodBoolean;
863
+ }, "strict", z.ZodTypeAny, {
864
+ processAliveBefore: boolean;
865
+ processAliveAfter: boolean;
866
+ }, {
867
+ processAliveBefore: boolean;
868
+ processAliveAfter: boolean;
869
+ }>>;
870
+ }, "strict", z.ZodTypeAny, {
871
+ act: {
872
+ selector: {
873
+ role: string;
874
+ title?: string | undefined;
875
+ identifier?: string | undefined;
876
+ };
877
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
878
+ actConfirmed: boolean;
879
+ };
880
+ handlerProbe: {
881
+ probeVersion: string;
882
+ hitCount: number;
883
+ handlers: {
884
+ file: string;
885
+ line: number;
886
+ }[];
887
+ lateCount: number;
888
+ } | null;
889
+ stateDiff: {
890
+ entries: {
891
+ key: string;
892
+ before: string;
893
+ after: string;
894
+ }[];
895
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
896
+ changed: boolean;
897
+ } | null;
898
+ axEvent?: {
899
+ treeDigestBefore: string;
900
+ treeDigestAfter: string;
901
+ nodeCount: number;
902
+ axChanged: boolean;
903
+ latencyMs: number;
904
+ } | undefined;
905
+ pixelDiff?: {
906
+ changedPixelRatio: number;
907
+ bounds: {
908
+ x: number;
909
+ y: number;
910
+ width: number;
911
+ height: number;
912
+ } | null;
913
+ windowId: number;
914
+ } | undefined;
915
+ responsiveness?: {
916
+ responsive: boolean;
917
+ pingMs: number;
918
+ } | undefined;
919
+ crash?: {
920
+ processAliveBefore: boolean;
921
+ processAliveAfter: boolean;
922
+ } | undefined;
923
+ }, {
924
+ act: {
925
+ selector: {
926
+ role: string;
927
+ title?: string | undefined;
928
+ identifier?: string | undefined;
929
+ };
930
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
931
+ actConfirmed: boolean;
932
+ };
933
+ handlerProbe: {
934
+ probeVersion: string;
935
+ hitCount: number;
936
+ handlers: {
937
+ file: string;
938
+ line: number;
939
+ }[];
940
+ lateCount: number;
941
+ } | null;
942
+ stateDiff: {
943
+ entries: {
944
+ key: string;
945
+ before: string;
946
+ after: string;
947
+ }[];
948
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
949
+ changed: boolean;
950
+ } | null;
951
+ axEvent?: {
952
+ treeDigestBefore: string;
953
+ treeDigestAfter: string;
954
+ nodeCount: number;
955
+ axChanged: boolean;
956
+ latencyMs: number;
957
+ } | undefined;
958
+ pixelDiff?: {
959
+ changedPixelRatio: number;
960
+ bounds: {
961
+ x: number;
962
+ y: number;
963
+ width: number;
964
+ height: number;
965
+ } | null;
966
+ windowId: number;
967
+ } | undefined;
968
+ responsiveness?: {
969
+ responsive: boolean;
970
+ pingMs: number;
971
+ } | undefined;
972
+ crash?: {
973
+ processAliveBefore: boolean;
974
+ processAliveAfter: boolean;
975
+ } | undefined;
976
+ }>;
977
+ assertion: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
978
+ kind: z.ZodLiteral<"element_property">;
979
+ selector: z.ZodObject<{
980
+ role: z.ZodString;
981
+ title: z.ZodOptional<z.ZodString>;
982
+ identifier: z.ZodOptional<z.ZodString>;
983
+ }, "strict", z.ZodTypeAny, {
984
+ role: string;
985
+ title?: string | undefined;
986
+ identifier?: string | undefined;
987
+ }, {
988
+ role: string;
989
+ title?: string | undefined;
990
+ identifier?: string | undefined;
991
+ }>;
992
+ property: z.ZodEnum<["title", "value", "role", "enabled", "focused"]>;
993
+ expected: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
994
+ actual: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
995
+ passed: z.ZodBoolean;
996
+ }, "strict", z.ZodTypeAny, {
997
+ expected: string | boolean;
998
+ selector: {
999
+ role: string;
1000
+ title?: string | undefined;
1001
+ identifier?: string | undefined;
1002
+ };
1003
+ kind: "element_property";
1004
+ property: "value" | "role" | "title" | "enabled" | "focused";
1005
+ actual: string | boolean;
1006
+ passed: boolean;
1007
+ }, {
1008
+ expected: string | boolean;
1009
+ selector: {
1010
+ role: string;
1011
+ title?: string | undefined;
1012
+ identifier?: string | undefined;
1013
+ };
1014
+ kind: "element_property";
1015
+ property: "value" | "role" | "title" | "enabled" | "focused";
1016
+ actual: string | boolean;
1017
+ passed: boolean;
1018
+ }>, z.ZodNull]>>;
1019
+ diagnosis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1020
+ class: z.ZodEnum<["T0", "T1", "T2", "T3", "T4", "T5", "T6", "T7", "T8", "T9", "NO_ANOMALY", "INCONCLUSIVE"]>;
1021
+ report: z.ZodObject<{
1022
+ path: z.ZodString;
1023
+ anomaly: z.ZodString;
1024
+ evidence: z.ZodString;
1025
+ next: z.ZodString;
1026
+ }, "strict", z.ZodTypeAny, {
1027
+ path: string;
1028
+ anomaly: string;
1029
+ evidence: string;
1030
+ next: string;
1031
+ }, {
1032
+ path: string;
1033
+ anomaly: string;
1034
+ evidence: string;
1035
+ next: string;
1036
+ }>;
1037
+ }, "strict", z.ZodTypeAny, {
1038
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1039
+ report: {
1040
+ path: string;
1041
+ anomaly: string;
1042
+ evidence: string;
1043
+ next: string;
1044
+ };
1045
+ }, {
1046
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1047
+ report: {
1048
+ path: string;
1049
+ anomaly: string;
1050
+ evidence: string;
1051
+ next: string;
1052
+ };
1053
+ }>, z.ZodNull]>>;
1054
+ }, "strict", z.ZodTypeAny, {
1055
+ schemaVersion: "glasspane.evidence/0.1";
1056
+ operationId: string;
1057
+ createdAt: string;
1058
+ attribution: {
1059
+ level: "soft" | "strong" | "weak";
1060
+ contaminated: boolean;
1061
+ };
1062
+ circuitBreaker: {
1063
+ level: number;
1064
+ reason?: string | undefined;
1065
+ };
1066
+ signals: {
1067
+ act: {
1068
+ selector: {
1069
+ role: string;
1070
+ title?: string | undefined;
1071
+ identifier?: string | undefined;
1072
+ };
1073
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1074
+ actConfirmed: boolean;
1075
+ };
1076
+ handlerProbe: {
1077
+ probeVersion: string;
1078
+ hitCount: number;
1079
+ handlers: {
1080
+ file: string;
1081
+ line: number;
1082
+ }[];
1083
+ lateCount: number;
1084
+ } | null;
1085
+ stateDiff: {
1086
+ entries: {
1087
+ key: string;
1088
+ before: string;
1089
+ after: string;
1090
+ }[];
1091
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1092
+ changed: boolean;
1093
+ } | null;
1094
+ axEvent?: {
1095
+ treeDigestBefore: string;
1096
+ treeDigestAfter: string;
1097
+ nodeCount: number;
1098
+ axChanged: boolean;
1099
+ latencyMs: number;
1100
+ } | undefined;
1101
+ pixelDiff?: {
1102
+ changedPixelRatio: number;
1103
+ bounds: {
1104
+ x: number;
1105
+ y: number;
1106
+ width: number;
1107
+ height: number;
1108
+ } | null;
1109
+ windowId: number;
1110
+ } | undefined;
1111
+ responsiveness?: {
1112
+ responsive: boolean;
1113
+ pingMs: number;
1114
+ } | undefined;
1115
+ crash?: {
1116
+ processAliveBefore: boolean;
1117
+ processAliveAfter: boolean;
1118
+ } | undefined;
1119
+ };
1120
+ assertion?: {
1121
+ expected: string | boolean;
1122
+ selector: {
1123
+ role: string;
1124
+ title?: string | undefined;
1125
+ identifier?: string | undefined;
1126
+ };
1127
+ kind: "element_property";
1128
+ property: "value" | "role" | "title" | "enabled" | "focused";
1129
+ actual: string | boolean;
1130
+ passed: boolean;
1131
+ } | null | undefined;
1132
+ diagnosis?: {
1133
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1134
+ report: {
1135
+ path: string;
1136
+ anomaly: string;
1137
+ evidence: string;
1138
+ next: string;
1139
+ };
1140
+ } | null | undefined;
1141
+ }, {
1142
+ schemaVersion: "glasspane.evidence/0.1";
1143
+ operationId: string;
1144
+ createdAt: string;
1145
+ attribution: {
1146
+ level: "soft" | "strong" | "weak";
1147
+ contaminated: boolean;
1148
+ };
1149
+ circuitBreaker: {
1150
+ level: number;
1151
+ reason?: string | undefined;
1152
+ };
1153
+ signals: {
1154
+ act: {
1155
+ selector: {
1156
+ role: string;
1157
+ title?: string | undefined;
1158
+ identifier?: string | undefined;
1159
+ };
1160
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1161
+ actConfirmed: boolean;
1162
+ };
1163
+ handlerProbe: {
1164
+ probeVersion: string;
1165
+ hitCount: number;
1166
+ handlers: {
1167
+ file: string;
1168
+ line: number;
1169
+ }[];
1170
+ lateCount: number;
1171
+ } | null;
1172
+ stateDiff: {
1173
+ entries: {
1174
+ key: string;
1175
+ before: string;
1176
+ after: string;
1177
+ }[];
1178
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1179
+ changed: boolean;
1180
+ } | null;
1181
+ axEvent?: {
1182
+ treeDigestBefore: string;
1183
+ treeDigestAfter: string;
1184
+ nodeCount: number;
1185
+ axChanged: boolean;
1186
+ latencyMs: number;
1187
+ } | undefined;
1188
+ pixelDiff?: {
1189
+ changedPixelRatio: number;
1190
+ bounds: {
1191
+ x: number;
1192
+ y: number;
1193
+ width: number;
1194
+ height: number;
1195
+ } | null;
1196
+ windowId: number;
1197
+ } | undefined;
1198
+ responsiveness?: {
1199
+ responsive: boolean;
1200
+ pingMs: number;
1201
+ } | undefined;
1202
+ crash?: {
1203
+ processAliveBefore: boolean;
1204
+ processAliveAfter: boolean;
1205
+ } | undefined;
1206
+ };
1207
+ assertion?: {
1208
+ expected: string | boolean;
1209
+ selector: {
1210
+ role: string;
1211
+ title?: string | undefined;
1212
+ identifier?: string | undefined;
1213
+ };
1214
+ kind: "element_property";
1215
+ property: "value" | "role" | "title" | "enabled" | "focused";
1216
+ actual: string | boolean;
1217
+ passed: boolean;
1218
+ } | null | undefined;
1219
+ diagnosis?: {
1220
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1221
+ report: {
1222
+ path: string;
1223
+ anomaly: string;
1224
+ evidence: string;
1225
+ next: string;
1226
+ };
1227
+ } | null | undefined;
1228
+ }>;
1229
+ export type EvidencePack = z.infer<typeof EvidencePackSchema>;
1230
+ /**
1231
+ * Read-side contract: `EvidencePackSchema` behind the legacy normalisations
1232
+ * documented above. The parsed value always matches the write-side shape, so
1233
+ * consumers that *compare* packs (the audit session, signal predicates) never
1234
+ * have to model the historical encodings — and consumers that *print* the label
1235
+ * must print the one the archive carried alongside this reading, because the
1236
+ * fold is not a claim that the bytes said so. Never use this to write a pack —
1237
+ * use `EvidencePackSchema`.
1238
+ */
1239
+ export declare const EvidencePackReadSchema: z.ZodEffects<z.ZodObject<{
1240
+ schemaVersion: z.ZodLiteral<"glasspane.evidence/0.1">;
1241
+ operationId: z.ZodString;
1242
+ createdAt: z.ZodString;
1243
+ attribution: z.ZodObject<{
1244
+ level: z.ZodEnum<["soft", "strong", "weak"]>;
1245
+ contaminated: z.ZodBoolean;
1246
+ }, "strict", z.ZodTypeAny, {
1247
+ level: "soft" | "strong" | "weak";
1248
+ contaminated: boolean;
1249
+ }, {
1250
+ level: "soft" | "strong" | "weak";
1251
+ contaminated: boolean;
1252
+ }>;
1253
+ circuitBreaker: z.ZodObject<{
1254
+ level: z.ZodNumber;
1255
+ reason: z.ZodOptional<z.ZodString>;
1256
+ }, "strict", z.ZodTypeAny, {
1257
+ level: number;
1258
+ reason?: string | undefined;
1259
+ }, {
1260
+ level: number;
1261
+ reason?: string | undefined;
1262
+ }>;
1263
+ signals: z.ZodObject<{
1264
+ act: z.ZodObject<{
1265
+ selector: z.ZodObject<{
1266
+ role: z.ZodString;
1267
+ title: z.ZodOptional<z.ZodString>;
1268
+ identifier: z.ZodOptional<z.ZodString>;
1269
+ }, "strict", z.ZodTypeAny, {
1270
+ role: string;
1271
+ title?: string | undefined;
1272
+ identifier?: string | undefined;
1273
+ }, {
1274
+ role: string;
1275
+ title?: string | undefined;
1276
+ identifier?: string | undefined;
1277
+ }>;
1278
+ action: z.ZodEnum<["press", "increment", "decrement", "showMenu", "confirm", "cancel", "pick"]>;
1279
+ actConfirmed: z.ZodBoolean;
1280
+ }, "strict", z.ZodTypeAny, {
1281
+ selector: {
1282
+ role: string;
1283
+ title?: string | undefined;
1284
+ identifier?: string | undefined;
1285
+ };
1286
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1287
+ actConfirmed: boolean;
1288
+ }, {
1289
+ selector: {
1290
+ role: string;
1291
+ title?: string | undefined;
1292
+ identifier?: string | undefined;
1293
+ };
1294
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1295
+ actConfirmed: boolean;
1296
+ }>;
1297
+ axEvent: z.ZodOptional<z.ZodObject<{
1298
+ treeDigestBefore: z.ZodString;
1299
+ treeDigestAfter: z.ZodString;
1300
+ nodeCount: z.ZodNumber;
1301
+ axChanged: z.ZodBoolean;
1302
+ latencyMs: z.ZodNumber;
1303
+ }, "strict", z.ZodTypeAny, {
1304
+ treeDigestBefore: string;
1305
+ treeDigestAfter: string;
1306
+ nodeCount: number;
1307
+ axChanged: boolean;
1308
+ latencyMs: number;
1309
+ }, {
1310
+ treeDigestBefore: string;
1311
+ treeDigestAfter: string;
1312
+ nodeCount: number;
1313
+ axChanged: boolean;
1314
+ latencyMs: number;
1315
+ }>>;
1316
+ handlerProbe: z.ZodUnion<[z.ZodObject<{
1317
+ probeVersion: z.ZodString;
1318
+ hitCount: z.ZodNumber;
1319
+ handlers: z.ZodArray<z.ZodObject<{
1320
+ file: z.ZodString;
1321
+ line: z.ZodNumber;
1322
+ }, "strict", z.ZodTypeAny, {
1323
+ file: string;
1324
+ line: number;
1325
+ }, {
1326
+ file: string;
1327
+ line: number;
1328
+ }>, "many">;
1329
+ lateCount: z.ZodNumber;
1330
+ }, "strict", z.ZodTypeAny, {
1331
+ probeVersion: string;
1332
+ hitCount: number;
1333
+ handlers: {
1334
+ file: string;
1335
+ line: number;
1336
+ }[];
1337
+ lateCount: number;
1338
+ }, {
1339
+ probeVersion: string;
1340
+ hitCount: number;
1341
+ handlers: {
1342
+ file: string;
1343
+ line: number;
1344
+ }[];
1345
+ lateCount: number;
1346
+ }>, z.ZodNull]>;
1347
+ stateDiff: z.ZodUnion<[z.ZodObject<{
1348
+ source: z.ZodEnum<["z1-macro", "z2-mirror", "z3-kvc"]>;
1349
+ changed: z.ZodBoolean;
1350
+ entries: z.ZodArray<z.ZodObject<{
1351
+ key: z.ZodString;
1352
+ before: z.ZodString;
1353
+ after: z.ZodString;
1354
+ }, "strict", z.ZodTypeAny, {
1355
+ key: string;
1356
+ before: string;
1357
+ after: string;
1358
+ }, {
1359
+ key: string;
1360
+ before: string;
1361
+ after: string;
1362
+ }>, "many">;
1363
+ }, "strict", z.ZodTypeAny, {
1364
+ entries: {
1365
+ key: string;
1366
+ before: string;
1367
+ after: string;
1368
+ }[];
1369
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1370
+ changed: boolean;
1371
+ }, {
1372
+ entries: {
1373
+ key: string;
1374
+ before: string;
1375
+ after: string;
1376
+ }[];
1377
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1378
+ changed: boolean;
1379
+ }>, z.ZodNull]>;
1380
+ pixelDiff: z.ZodOptional<z.ZodObject<{
1381
+ changedPixelRatio: z.ZodNumber;
1382
+ bounds: z.ZodUnion<[z.ZodObject<{
1383
+ x: z.ZodNumber;
1384
+ y: z.ZodNumber;
1385
+ width: z.ZodNumber;
1386
+ height: z.ZodNumber;
1387
+ }, "strict", z.ZodTypeAny, {
1388
+ x: number;
1389
+ y: number;
1390
+ width: number;
1391
+ height: number;
1392
+ }, {
1393
+ x: number;
1394
+ y: number;
1395
+ width: number;
1396
+ height: number;
1397
+ }>, z.ZodNull]>;
1398
+ windowId: z.ZodNumber;
1399
+ }, "strict", z.ZodTypeAny, {
1400
+ changedPixelRatio: number;
1401
+ bounds: {
1402
+ x: number;
1403
+ y: number;
1404
+ width: number;
1405
+ height: number;
1406
+ } | null;
1407
+ windowId: number;
1408
+ }, {
1409
+ changedPixelRatio: number;
1410
+ bounds: {
1411
+ x: number;
1412
+ y: number;
1413
+ width: number;
1414
+ height: number;
1415
+ } | null;
1416
+ windowId: number;
1417
+ }>>;
1418
+ responsiveness: z.ZodOptional<z.ZodObject<{
1419
+ responsive: z.ZodBoolean;
1420
+ pingMs: z.ZodNumber;
1421
+ }, "strict", z.ZodTypeAny, {
1422
+ responsive: boolean;
1423
+ pingMs: number;
1424
+ }, {
1425
+ responsive: boolean;
1426
+ pingMs: number;
1427
+ }>>;
1428
+ crash: z.ZodOptional<z.ZodObject<{
1429
+ processAliveBefore: z.ZodBoolean;
1430
+ processAliveAfter: z.ZodBoolean;
1431
+ }, "strict", z.ZodTypeAny, {
1432
+ processAliveBefore: boolean;
1433
+ processAliveAfter: boolean;
1434
+ }, {
1435
+ processAliveBefore: boolean;
1436
+ processAliveAfter: boolean;
1437
+ }>>;
1438
+ }, "strict", z.ZodTypeAny, {
1439
+ act: {
1440
+ selector: {
1441
+ role: string;
1442
+ title?: string | undefined;
1443
+ identifier?: string | undefined;
1444
+ };
1445
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1446
+ actConfirmed: boolean;
1447
+ };
1448
+ handlerProbe: {
1449
+ probeVersion: string;
1450
+ hitCount: number;
1451
+ handlers: {
1452
+ file: string;
1453
+ line: number;
1454
+ }[];
1455
+ lateCount: number;
1456
+ } | null;
1457
+ stateDiff: {
1458
+ entries: {
1459
+ key: string;
1460
+ before: string;
1461
+ after: string;
1462
+ }[];
1463
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1464
+ changed: boolean;
1465
+ } | null;
1466
+ axEvent?: {
1467
+ treeDigestBefore: string;
1468
+ treeDigestAfter: string;
1469
+ nodeCount: number;
1470
+ axChanged: boolean;
1471
+ latencyMs: number;
1472
+ } | undefined;
1473
+ pixelDiff?: {
1474
+ changedPixelRatio: number;
1475
+ bounds: {
1476
+ x: number;
1477
+ y: number;
1478
+ width: number;
1479
+ height: number;
1480
+ } | null;
1481
+ windowId: number;
1482
+ } | undefined;
1483
+ responsiveness?: {
1484
+ responsive: boolean;
1485
+ pingMs: number;
1486
+ } | undefined;
1487
+ crash?: {
1488
+ processAliveBefore: boolean;
1489
+ processAliveAfter: boolean;
1490
+ } | undefined;
1491
+ }, {
1492
+ act: {
1493
+ selector: {
1494
+ role: string;
1495
+ title?: string | undefined;
1496
+ identifier?: string | undefined;
1497
+ };
1498
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1499
+ actConfirmed: boolean;
1500
+ };
1501
+ handlerProbe: {
1502
+ probeVersion: string;
1503
+ hitCount: number;
1504
+ handlers: {
1505
+ file: string;
1506
+ line: number;
1507
+ }[];
1508
+ lateCount: number;
1509
+ } | null;
1510
+ stateDiff: {
1511
+ entries: {
1512
+ key: string;
1513
+ before: string;
1514
+ after: string;
1515
+ }[];
1516
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1517
+ changed: boolean;
1518
+ } | null;
1519
+ axEvent?: {
1520
+ treeDigestBefore: string;
1521
+ treeDigestAfter: string;
1522
+ nodeCount: number;
1523
+ axChanged: boolean;
1524
+ latencyMs: number;
1525
+ } | undefined;
1526
+ pixelDiff?: {
1527
+ changedPixelRatio: number;
1528
+ bounds: {
1529
+ x: number;
1530
+ y: number;
1531
+ width: number;
1532
+ height: number;
1533
+ } | null;
1534
+ windowId: number;
1535
+ } | undefined;
1536
+ responsiveness?: {
1537
+ responsive: boolean;
1538
+ pingMs: number;
1539
+ } | undefined;
1540
+ crash?: {
1541
+ processAliveBefore: boolean;
1542
+ processAliveAfter: boolean;
1543
+ } | undefined;
1544
+ }>;
1545
+ assertion: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1546
+ kind: z.ZodLiteral<"element_property">;
1547
+ selector: z.ZodObject<{
1548
+ role: z.ZodString;
1549
+ title: z.ZodOptional<z.ZodString>;
1550
+ identifier: z.ZodOptional<z.ZodString>;
1551
+ }, "strict", z.ZodTypeAny, {
1552
+ role: string;
1553
+ title?: string | undefined;
1554
+ identifier?: string | undefined;
1555
+ }, {
1556
+ role: string;
1557
+ title?: string | undefined;
1558
+ identifier?: string | undefined;
1559
+ }>;
1560
+ property: z.ZodEnum<["title", "value", "role", "enabled", "focused"]>;
1561
+ expected: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
1562
+ actual: z.ZodUnion<[z.ZodString, z.ZodBoolean]>;
1563
+ passed: z.ZodBoolean;
1564
+ }, "strict", z.ZodTypeAny, {
1565
+ expected: string | boolean;
1566
+ selector: {
1567
+ role: string;
1568
+ title?: string | undefined;
1569
+ identifier?: string | undefined;
1570
+ };
1571
+ kind: "element_property";
1572
+ property: "value" | "role" | "title" | "enabled" | "focused";
1573
+ actual: string | boolean;
1574
+ passed: boolean;
1575
+ }, {
1576
+ expected: string | boolean;
1577
+ selector: {
1578
+ role: string;
1579
+ title?: string | undefined;
1580
+ identifier?: string | undefined;
1581
+ };
1582
+ kind: "element_property";
1583
+ property: "value" | "role" | "title" | "enabled" | "focused";
1584
+ actual: string | boolean;
1585
+ passed: boolean;
1586
+ }>, z.ZodNull]>>;
1587
+ diagnosis: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1588
+ class: z.ZodEnum<["T0", "T1", "T2", "T3", "T4", "T5", "T6", "T7", "T8", "T9", "NO_ANOMALY", "INCONCLUSIVE"]>;
1589
+ report: z.ZodObject<{
1590
+ path: z.ZodString;
1591
+ anomaly: z.ZodString;
1592
+ evidence: z.ZodString;
1593
+ next: z.ZodString;
1594
+ }, "strict", z.ZodTypeAny, {
1595
+ path: string;
1596
+ anomaly: string;
1597
+ evidence: string;
1598
+ next: string;
1599
+ }, {
1600
+ path: string;
1601
+ anomaly: string;
1602
+ evidence: string;
1603
+ next: string;
1604
+ }>;
1605
+ }, "strict", z.ZodTypeAny, {
1606
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1607
+ report: {
1608
+ path: string;
1609
+ anomaly: string;
1610
+ evidence: string;
1611
+ next: string;
1612
+ };
1613
+ }, {
1614
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1615
+ report: {
1616
+ path: string;
1617
+ anomaly: string;
1618
+ evidence: string;
1619
+ next: string;
1620
+ };
1621
+ }>, z.ZodNull]>>;
1622
+ }, "strict", z.ZodTypeAny, {
1623
+ schemaVersion: "glasspane.evidence/0.1";
1624
+ operationId: string;
1625
+ createdAt: string;
1626
+ attribution: {
1627
+ level: "soft" | "strong" | "weak";
1628
+ contaminated: boolean;
1629
+ };
1630
+ circuitBreaker: {
1631
+ level: number;
1632
+ reason?: string | undefined;
1633
+ };
1634
+ signals: {
1635
+ act: {
1636
+ selector: {
1637
+ role: string;
1638
+ title?: string | undefined;
1639
+ identifier?: string | undefined;
1640
+ };
1641
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1642
+ actConfirmed: boolean;
1643
+ };
1644
+ handlerProbe: {
1645
+ probeVersion: string;
1646
+ hitCount: number;
1647
+ handlers: {
1648
+ file: string;
1649
+ line: number;
1650
+ }[];
1651
+ lateCount: number;
1652
+ } | null;
1653
+ stateDiff: {
1654
+ entries: {
1655
+ key: string;
1656
+ before: string;
1657
+ after: string;
1658
+ }[];
1659
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1660
+ changed: boolean;
1661
+ } | null;
1662
+ axEvent?: {
1663
+ treeDigestBefore: string;
1664
+ treeDigestAfter: string;
1665
+ nodeCount: number;
1666
+ axChanged: boolean;
1667
+ latencyMs: number;
1668
+ } | undefined;
1669
+ pixelDiff?: {
1670
+ changedPixelRatio: number;
1671
+ bounds: {
1672
+ x: number;
1673
+ y: number;
1674
+ width: number;
1675
+ height: number;
1676
+ } | null;
1677
+ windowId: number;
1678
+ } | undefined;
1679
+ responsiveness?: {
1680
+ responsive: boolean;
1681
+ pingMs: number;
1682
+ } | undefined;
1683
+ crash?: {
1684
+ processAliveBefore: boolean;
1685
+ processAliveAfter: boolean;
1686
+ } | undefined;
1687
+ };
1688
+ assertion?: {
1689
+ expected: string | boolean;
1690
+ selector: {
1691
+ role: string;
1692
+ title?: string | undefined;
1693
+ identifier?: string | undefined;
1694
+ };
1695
+ kind: "element_property";
1696
+ property: "value" | "role" | "title" | "enabled" | "focused";
1697
+ actual: string | boolean;
1698
+ passed: boolean;
1699
+ } | null | undefined;
1700
+ diagnosis?: {
1701
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1702
+ report: {
1703
+ path: string;
1704
+ anomaly: string;
1705
+ evidence: string;
1706
+ next: string;
1707
+ };
1708
+ } | null | undefined;
1709
+ }, {
1710
+ schemaVersion: "glasspane.evidence/0.1";
1711
+ operationId: string;
1712
+ createdAt: string;
1713
+ attribution: {
1714
+ level: "soft" | "strong" | "weak";
1715
+ contaminated: boolean;
1716
+ };
1717
+ circuitBreaker: {
1718
+ level: number;
1719
+ reason?: string | undefined;
1720
+ };
1721
+ signals: {
1722
+ act: {
1723
+ selector: {
1724
+ role: string;
1725
+ title?: string | undefined;
1726
+ identifier?: string | undefined;
1727
+ };
1728
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1729
+ actConfirmed: boolean;
1730
+ };
1731
+ handlerProbe: {
1732
+ probeVersion: string;
1733
+ hitCount: number;
1734
+ handlers: {
1735
+ file: string;
1736
+ line: number;
1737
+ }[];
1738
+ lateCount: number;
1739
+ } | null;
1740
+ stateDiff: {
1741
+ entries: {
1742
+ key: string;
1743
+ before: string;
1744
+ after: string;
1745
+ }[];
1746
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1747
+ changed: boolean;
1748
+ } | null;
1749
+ axEvent?: {
1750
+ treeDigestBefore: string;
1751
+ treeDigestAfter: string;
1752
+ nodeCount: number;
1753
+ axChanged: boolean;
1754
+ latencyMs: number;
1755
+ } | undefined;
1756
+ pixelDiff?: {
1757
+ changedPixelRatio: number;
1758
+ bounds: {
1759
+ x: number;
1760
+ y: number;
1761
+ width: number;
1762
+ height: number;
1763
+ } | null;
1764
+ windowId: number;
1765
+ } | undefined;
1766
+ responsiveness?: {
1767
+ responsive: boolean;
1768
+ pingMs: number;
1769
+ } | undefined;
1770
+ crash?: {
1771
+ processAliveBefore: boolean;
1772
+ processAliveAfter: boolean;
1773
+ } | undefined;
1774
+ };
1775
+ assertion?: {
1776
+ expected: string | boolean;
1777
+ selector: {
1778
+ role: string;
1779
+ title?: string | undefined;
1780
+ identifier?: string | undefined;
1781
+ };
1782
+ kind: "element_property";
1783
+ property: "value" | "role" | "title" | "enabled" | "focused";
1784
+ actual: string | boolean;
1785
+ passed: boolean;
1786
+ } | null | undefined;
1787
+ diagnosis?: {
1788
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1789
+ report: {
1790
+ path: string;
1791
+ anomaly: string;
1792
+ evidence: string;
1793
+ next: string;
1794
+ };
1795
+ } | null | undefined;
1796
+ }>, {
1797
+ schemaVersion: "glasspane.evidence/0.1";
1798
+ operationId: string;
1799
+ createdAt: string;
1800
+ attribution: {
1801
+ level: "soft" | "strong" | "weak";
1802
+ contaminated: boolean;
1803
+ };
1804
+ circuitBreaker: {
1805
+ level: number;
1806
+ reason?: string | undefined;
1807
+ };
1808
+ signals: {
1809
+ act: {
1810
+ selector: {
1811
+ role: string;
1812
+ title?: string | undefined;
1813
+ identifier?: string | undefined;
1814
+ };
1815
+ action: "press" | "increment" | "decrement" | "showMenu" | "confirm" | "cancel" | "pick";
1816
+ actConfirmed: boolean;
1817
+ };
1818
+ handlerProbe: {
1819
+ probeVersion: string;
1820
+ hitCount: number;
1821
+ handlers: {
1822
+ file: string;
1823
+ line: number;
1824
+ }[];
1825
+ lateCount: number;
1826
+ } | null;
1827
+ stateDiff: {
1828
+ entries: {
1829
+ key: string;
1830
+ before: string;
1831
+ after: string;
1832
+ }[];
1833
+ source: "z1-macro" | "z2-mirror" | "z3-kvc";
1834
+ changed: boolean;
1835
+ } | null;
1836
+ axEvent?: {
1837
+ treeDigestBefore: string;
1838
+ treeDigestAfter: string;
1839
+ nodeCount: number;
1840
+ axChanged: boolean;
1841
+ latencyMs: number;
1842
+ } | undefined;
1843
+ pixelDiff?: {
1844
+ changedPixelRatio: number;
1845
+ bounds: {
1846
+ x: number;
1847
+ y: number;
1848
+ width: number;
1849
+ height: number;
1850
+ } | null;
1851
+ windowId: number;
1852
+ } | undefined;
1853
+ responsiveness?: {
1854
+ responsive: boolean;
1855
+ pingMs: number;
1856
+ } | undefined;
1857
+ crash?: {
1858
+ processAliveBefore: boolean;
1859
+ processAliveAfter: boolean;
1860
+ } | undefined;
1861
+ };
1862
+ assertion?: {
1863
+ expected: string | boolean;
1864
+ selector: {
1865
+ role: string;
1866
+ title?: string | undefined;
1867
+ identifier?: string | undefined;
1868
+ };
1869
+ kind: "element_property";
1870
+ property: "value" | "role" | "title" | "enabled" | "focused";
1871
+ actual: string | boolean;
1872
+ passed: boolean;
1873
+ } | null | undefined;
1874
+ diagnosis?: {
1875
+ class: "T0" | "T1" | "T2" | "T3" | "T4" | "T5" | "T6" | "T7" | "T8" | "T9" | "NO_ANOMALY" | "INCONCLUSIVE";
1876
+ report: {
1877
+ path: string;
1878
+ anomaly: string;
1879
+ evidence: string;
1880
+ next: string;
1881
+ };
1882
+ } | null | undefined;
1883
+ }, unknown>;
1884
+ //# sourceMappingURL=evidence-pack.d.ts.map