@reticlehq/core 2.14.0 → 3.2.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.
Files changed (148) hide show
  1. package/dist/{artifacts-entry.d.ts → artifacts/artifacts-entry.d.ts} +7 -7
  2. package/dist/{artifacts-entry.js → artifacts/artifacts-entry.js} +7 -7
  3. package/dist/artifacts/flow-composition.d.ts +30 -0
  4. package/dist/artifacts/flow-composition.js +19 -0
  5. package/dist/{flow-constants.d.ts → artifacts/flow-constants.d.ts} +99 -3
  6. package/dist/{flow-constants.js → artifacts/flow-constants.js} +108 -4
  7. package/dist/artifacts/flow-mutation-target.d.ts +39 -0
  8. package/dist/artifacts/flow-mutation-target.js +89 -0
  9. package/dist/artifacts/flow-order.d.ts +30 -0
  10. package/dist/artifacts/flow-order.js +49 -0
  11. package/dist/artifacts/flow-select.d.ts +56 -0
  12. package/dist/artifacts/flow-select.js +56 -0
  13. package/dist/artifacts/flow-step-tool.d.ts +31 -0
  14. package/dist/artifacts/flow-step-tool.js +31 -0
  15. package/dist/artifacts/flow-types.d.ts +3736 -0
  16. package/dist/artifacts/flow-types.js +463 -0
  17. package/dist/artifacts/flow-unreached.d.ts +12 -0
  18. package/dist/artifacts/flow-unreached.js +24 -0
  19. package/dist/{impact.d.ts → artifacts/impact.d.ts} +271 -103
  20. package/dist/{impact.js → artifacts/impact.js} +75 -5
  21. package/dist/artifacts/journal.d.ts +218 -0
  22. package/dist/artifacts/journal.js +130 -0
  23. package/dist/artifacts/step-effect.d.ts +29 -0
  24. package/dist/artifacts/step-effect.js +28 -0
  25. package/dist/hooks/hook-events.d.ts +311 -0
  26. package/dist/hooks/hook-events.js +127 -0
  27. package/dist/hooks/hooks-entry.d.ts +9 -0
  28. package/dist/hooks/hooks-entry.js +9 -0
  29. package/dist/identity/brand.d.ts +102 -0
  30. package/dist/{brand.js → identity/brand.js} +7 -0
  31. package/dist/{contract-fingerprint.d.ts → identity/contract-fingerprint.d.ts} +21 -3
  32. package/dist/{contract-fingerprint.js → identity/contract-fingerprint.js} +22 -4
  33. package/dist/{document-identity.d.ts → identity/document-identity.d.ts} +4 -5
  34. package/dist/{document-identity.js → identity/document-identity.js} +4 -5
  35. package/dist/{source-constants.d.ts → identity/source-constants.d.ts} +4 -4
  36. package/dist/{source-constants.js → identity/source-constants.js} +4 -4
  37. package/dist/index.d.ts +57 -43
  38. package/dist/index.js +66 -45
  39. package/dist/onboarding.d.ts +114 -0
  40. package/dist/onboarding.js +141 -0
  41. package/dist/realm/registry.d.ts +212 -0
  42. package/dist/realm/registry.js +302 -0
  43. package/dist/{dev-server-registry.d.ts → registry/dev-server-registry.d.ts} +6 -7
  44. package/dist/{dev-server-registry.js → registry/dev-server-registry.js} +28 -19
  45. package/dist/{project-registry.d.ts → registry/project-registry.d.ts} +5 -5
  46. package/dist/{project-registry.js → registry/project-registry.js} +5 -5
  47. package/dist/schema/command-name.json +31 -0
  48. package/dist/schema/event-payloads.json +795 -0
  49. package/dist/schema/hello-message.json +70 -2
  50. package/dist/schema/reticle-message.json +70 -2
  51. package/dist/telemetry-entry.d.ts +1 -1
  52. package/dist/telemetry-entry.js +1 -1
  53. package/dist/telemetry-feedback.d.ts +15 -16
  54. package/dist/telemetry-feedback.js +11 -12
  55. package/dist/telemetry-license.d.ts +1 -1
  56. package/dist/telemetry-license.js +1 -1
  57. package/dist/telemetry-refusal.d.ts +11 -11
  58. package/dist/telemetry-refusal.js +7 -8
  59. package/dist/telemetry-session.d.ts +51 -59
  60. package/dist/telemetry-session.js +47 -55
  61. package/dist/telemetry.d.ts +306 -222
  62. package/dist/telemetry.js +112 -99
  63. package/dist/tour-entry.d.ts +10 -0
  64. package/dist/tour-entry.js +10 -0
  65. package/dist/tour.d.ts +125 -0
  66. package/dist/tour.js +165 -0
  67. package/dist/{consequence.d.ts → verdict/consequence.d.ts} +32 -15
  68. package/dist/{consequence.js → verdict/consequence.js} +9 -31
  69. package/dist/{finding-fingerprint.js → verdict/finding-fingerprint.js} +1 -1
  70. package/dist/{findings.d.ts → verdict/findings.d.ts} +86 -39
  71. package/dist/{findings.js → verdict/findings.js} +103 -49
  72. package/dist/{instrumentation-gap.d.ts → verdict/instrumentation-gap.d.ts} +7 -14
  73. package/dist/{instrumentation-gap.js → verdict/instrumentation-gap.js} +7 -15
  74. package/dist/{intent.d.ts → verdict/intent.d.ts} +35 -46
  75. package/dist/{intent.js → verdict/intent.js} +11 -22
  76. package/dist/verdict/revision.d.ts +44 -0
  77. package/dist/verdict/revision.js +53 -0
  78. package/dist/{run-context.d.ts → verdict/run-context.d.ts} +13 -34
  79. package/dist/{run-context.js → verdict/run-context.js} +15 -36
  80. package/dist/{security.js → verdict/security.js} +12 -21
  81. package/dist/{verification-run.d.ts → verdict/verification-run.d.ts} +381 -105
  82. package/dist/{verification-run.js → verdict/verification-run.js} +157 -21
  83. package/dist/{verified-constants.d.ts → verdict/verified-constants.d.ts} +34 -13
  84. package/dist/{verified-constants.js → verdict/verified-constants.js} +34 -13
  85. package/dist/{verify-progress.d.ts → verdict/verify-progress.d.ts} +18 -22
  86. package/dist/{verify-progress.js → verdict/verify-progress.js} +6 -10
  87. package/dist/wire/channel.d.ts +46 -0
  88. package/dist/wire/channel.js +95 -0
  89. package/dist/{constants.d.ts → wire/constants/constants.d.ts} +179 -28
  90. package/dist/{constants.js → wire/constants/constants.js} +199 -28
  91. package/dist/{session-constants.d.ts → wire/constants/session-constants.d.ts} +23 -2
  92. package/dist/{session-constants.js → wire/constants/session-constants.js} +23 -2
  93. package/dist/{desktop-contract.js → wire/desktop-contract.js} +1 -1
  94. package/dist/{event-classification.js → wire/event-classification.js} +1 -1
  95. package/dist/{event-payloads.d.ts → wire/event-payloads.d.ts} +72 -13
  96. package/dist/{event-payloads.js → wire/event-payloads.js} +23 -3
  97. package/dist/{event-priority.d.ts → wire/event-priority.d.ts} +1 -4
  98. package/dist/{event-priority.js → wire/event-priority.js} +2 -5
  99. package/dist/{global-press.js → wire/global-press.js} +1 -1
  100. package/dist/{messages.d.ts → wire/messages.d.ts} +240 -48
  101. package/dist/{messages.js → wire/messages.js} +68 -5
  102. package/dist/wire/narrow.d.ts +39 -0
  103. package/dist/wire/narrow.js +45 -0
  104. package/dist/{net.d.ts → wire/net.d.ts} +36 -13
  105. package/dist/{net.js → wire/net.js} +36 -13
  106. package/dist/wire/platform.d.ts +37 -0
  107. package/dist/wire/platform.js +36 -0
  108. package/dist/{redaction.js → wire/redaction.js} +12 -12
  109. package/dist/wire/snapshot-tree.d.ts +33 -0
  110. package/dist/wire/snapshot-tree.js +43 -0
  111. package/dist/wire/tool-names.d.ts +133 -0
  112. package/dist/wire/tool-names.js +142 -0
  113. package/dist/{toon.js → wire/toon.js} +1 -1
  114. package/dist/{types.d.ts → wire/types.d.ts} +77 -76
  115. package/dist/{types.js → wire/types.js} +4 -3
  116. package/dist/{no-session-reason.d.ts → words/no-session-reason.d.ts} +7 -3
  117. package/dist/{no-session-reason.js → words/no-session-reason.js} +7 -3
  118. package/dist/{notices.d.ts → words/notices.d.ts} +8 -12
  119. package/dist/{notices.js → words/notices.js} +8 -12
  120. package/package.json +16 -7
  121. package/dist/brand.d.ts +0 -49
  122. package/dist/flow-types.d.ts +0 -1711
  123. package/dist/flow-types.js +0 -247
  124. package/dist/journal.d.ts +0 -122
  125. package/dist/journal.js +0 -57
  126. package/dist/{impact-savings.d.ts → artifacts/impact-savings.d.ts} +0 -0
  127. package/dist/{impact-savings.js → artifacts/impact-savings.js} +0 -0
  128. package/dist/{edit-epoch.d.ts → identity/edit-epoch.d.ts} +0 -0
  129. package/dist/{edit-epoch.js → identity/edit-epoch.js} +0 -0
  130. package/dist/{project-id.d.ts → identity/project-id.d.ts} +0 -0
  131. package/dist/{project-id.js → identity/project-id.js} +0 -0
  132. package/dist/{daemon-registry.d.ts → registry/daemon-registry.d.ts} +0 -0
  133. package/dist/{daemon-registry.js → registry/daemon-registry.js} +0 -0
  134. package/dist/{finding-fingerprint.d.ts → verdict/finding-fingerprint.d.ts} +0 -0
  135. package/dist/{security.d.ts → verdict/security.d.ts} +0 -0
  136. package/dist/{desktop-contract.d.ts → wire/desktop-contract.d.ts} +0 -0
  137. package/dist/{event-classification.d.ts → wire/event-classification.d.ts} +0 -0
  138. package/dist/{global-press.d.ts → wire/global-press.d.ts} +0 -0
  139. package/dist/{redaction.d.ts → wire/redaction.d.ts} +0 -0
  140. package/dist/{state-select.d.ts → wire/state-select.d.ts} +0 -0
  141. package/dist/{state-select.js → wire/state-select.js} +0 -0
  142. package/dist/{toon.d.ts → wire/toon.d.ts} +0 -0
  143. package/dist/{browser-misdirect.d.ts → words/browser-misdirect.d.ts} +0 -0
  144. package/dist/{browser-misdirect.js → words/browser-misdirect.js} +0 -0
  145. package/dist/{unreachable-notice.d.ts → words/unreachable-notice.d.ts} +0 -0
  146. package/dist/{unreachable-notice.js → words/unreachable-notice.js} +0 -0
  147. package/dist/{upgrade.d.ts → words/upgrade.d.ts} +2 -2
  148. /package/dist/{upgrade.js → words/upgrade.js} +0 -0
@@ -10,8 +10,10 @@
10
10
  * logic), no `any` (opaque evidence is `z.unknown`), and every domain string is a named constant.
11
11
  */
12
12
  import { z } from 'zod';
13
+ import { PredicateKind } from './consequence.js';
14
+ import { Verified } from './verified-constants.js';
13
15
  /** Schema version stamped into every run file so a reader can reject/upgrade old artifacts. */
14
- export declare const RUN_FILE_VERSION = 1;
16
+ export declare const RUN_FILE_VERSION = 3;
15
17
  /**
16
18
  * A run's identity, branded so it can't be confused with another id (e.g. a flow name) that also feeds
17
19
  * path helpers. The schema brands on parse; mint a fresh one with asRunId at a trusted/validated point.
@@ -38,6 +40,16 @@ export declare const VerdictStatus: {
38
40
  readonly PASS: "pass";
39
41
  readonly FAIL: "fail";
40
42
  readonly PARTIAL: "partial";
43
+ /**
44
+ * Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
45
+ * to pass and nothing to fail.
46
+ *
47
+ * This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
48
+ * successfully are different facts, and flattening them into one word is how a green light comes
49
+ * to mean "we did not look". It matches how a single action is already judged, where "could not
50
+ * tell" has always been its own answer.
51
+ */
52
+ readonly UNKNOWN: "unknown";
41
53
  };
42
54
  export type VerdictStatus = (typeof VerdictStatus)[keyof typeof VerdictStatus];
43
55
  /** Per-flow outcome inside a run. HEALED = a drifted anchor was consequence-verified and rebound. */
@@ -48,22 +60,22 @@ export declare const RunFlowStatus: {
48
60
  readonly HEALED: "healed";
49
61
  };
50
62
  export type RunFlowStatus = (typeof RunFlowStatus)[keyof typeof RunFlowStatus];
51
- /** The kind of standalone assertion captured outside a flow (drives `evidence` narrowing downstream). */
52
- export declare const RunCheckKind: {
53
- readonly SIGNAL: "signal";
54
- readonly NETWORK: "network";
55
- readonly ELEMENT: "element";
56
- readonly STATE: "state";
57
- readonly CONSOLE: "console";
58
- readonly LAYOUT: "layout";
59
- };
60
- export type RunCheckKind = (typeof RunCheckKind)[keyof typeof RunCheckKind];
61
- /** Binary status of a single check. */
62
- export declare const RunCheckStatus: {
63
- readonly PASS: "pass";
64
- readonly FAIL: "fail";
65
- };
66
- export type RunCheckStatus = (typeof RunCheckStatus)[keyof typeof RunCheckStatus];
63
+ /**
64
+ * The kind of standalone assertion captured outside a flow.
65
+ *
66
+ * This is `PredicateKind` -- the vocabulary assertions are written in -- and not a second list: two
67
+ * lists drift, and an artifact can only record what somebody can actually assert. Re-exported so
68
+ * the places that read it from this file still can.
69
+ */
70
+ export { PredicateKind };
71
+ /**
72
+ * What a check came out as.
73
+ *
74
+ * `Verified` and not a second list. A binary one here would lose `unknown` and `no-fault` -- the
75
+ * two the specification says make the other two mean anything -- at the moment the verdict is
76
+ * written down. Re-exported so the places that read it from this file still can.
77
+ */
78
+ export { Verified };
67
79
  /**
68
80
  * A risk surface a changed file / observed behaviour touches. The governance seed: a host can gate
69
81
  * a deploy when a high-severity surface is hit. Mirrors the surfaces real AI-app-builder incidents
@@ -215,8 +227,8 @@ export declare const RunFlowResultSchema: z.ZodObject<{
215
227
  }, "strip", z.ZodTypeAny, {
216
228
  status: "pass" | "fail" | "healed" | "skipped";
217
229
  name: string;
218
- durationMs: number;
219
230
  steps: number;
231
+ durationMs: number;
220
232
  healed?: {
221
233
  from: string;
222
234
  to: string;
@@ -228,8 +240,8 @@ export declare const RunFlowResultSchema: z.ZodObject<{
228
240
  }, {
229
241
  status: "pass" | "fail" | "healed" | "skipped";
230
242
  name: string;
231
- durationMs: number;
232
243
  steps: number;
244
+ durationMs: number;
233
245
  healed?: {
234
246
  from: string;
235
247
  to: string;
@@ -242,30 +254,92 @@ export declare const RunFlowResultSchema: z.ZodObject<{
242
254
  export type RunFlowResult = z.infer<typeof RunFlowResultSchema>;
243
255
  /** A standalone assertion not tied to a flow. `evidence` is opaque (narrowed per kind by the caller). */
244
256
  export declare const RunCheckSchema: z.ZodObject<{
245
- kind: z.ZodNativeEnum<{
246
- readonly SIGNAL: "signal";
247
- readonly NETWORK: "network";
257
+ kind: z.ZodEffects<z.ZodNativeEnum<{
248
258
  readonly ELEMENT: "element";
259
+ readonly TEXT: "text";
260
+ readonly SIGNAL: "signal";
261
+ readonly NET: "net";
249
262
  readonly STATE: "state";
263
+ readonly ROUTE: "route";
250
264
  readonly CONSOLE: "console";
251
- readonly LAYOUT: "layout";
252
- }>;
265
+ readonly ANIMATION: "animation";
266
+ readonly SETTLED: "settled";
267
+ readonly ALL_OF: "allOf";
268
+ readonly ANY_OF: "anyOf";
269
+ readonly NOT: "not";
270
+ }>, "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not", unknown>;
253
271
  predicate: z.ZodString;
254
- status: z.ZodNativeEnum<{
255
- readonly PASS: "pass";
256
- readonly FAIL: "fail";
257
- }>;
272
+ status: z.ZodEffects<z.ZodNativeEnum<{
273
+ readonly YES: "yes";
274
+ readonly NO: "no";
275
+ readonly UNKNOWN: "unknown";
276
+ readonly NO_FAULT: "no-fault";
277
+ }>, "unknown" | "yes" | "no" | "no-fault", unknown>;
258
278
  evidence: z.ZodOptional<z.ZodUnknown>;
279
+ /**
280
+ * Was this claim written down BEFORE the action, or after it?
281
+ *
282
+ * The difference between a check and a rationalisation. Afterwards, anything that happened can be
283
+ * described as what you meant; a claim made in advance can only be met or missed.
284
+ *
285
+ * Optional, and absence is not `false`. `false` says the claim came afterwards. Absent says nobody
286
+ * recorded which, and those are different facts about the evidence.
287
+ */
288
+ declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
289
+ /**
290
+ * What kind of evidence bought this answer.
291
+ *
292
+ * A green paid for with "something matching was on screen" is not the same green as one paid for
293
+ * with "the request went out", and a report that flattens them lets the cheap one pass for the
294
+ * dear one. Free-form because the grades belong to whoever produced the verdict.
295
+ */
296
+ grade: z.ZodOptional<z.ZodString>;
297
+ /**
298
+ * What could not be seen while this was being checked.
299
+ *
300
+ * The property with no prior art: every other test report in existence is silent about its own
301
+ * blind spots. An empty list means nothing was hidden; absence means nobody looked.
302
+ */
303
+ couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
304
+ /**
305
+ * Why the verdict came out this way, in the engine's vocabulary.
306
+ *
307
+ * Carried so a reader -- and the fold that looks for late answers -- can tell an outcome that
308
+ * has not arrived from a capture that could not be read. Both are `unknown`, and only the
309
+ * first is a question that waiting can settle.
310
+ */
311
+ reason: z.ZodOptional<z.ZodString>;
312
+ /** This check's own name, so a later verdict can cite it. See revision.ts. */
313
+ checkId: z.ZodOptional<z.ZodString>;
314
+ /**
315
+ * The earlier check this one corrects, as `<runId>#<checkId>`.
316
+ *
317
+ * Present only on a correction, and the check it names is NOT edited: both stand, so a reader
318
+ * can see that the first answer was given, when it changed, and why.
319
+ */
320
+ supersedes: z.ZodOptional<z.ZodString>;
259
321
  }, "strip", z.ZodTypeAny, {
260
- status: "pass" | "fail";
261
- kind: "state" | "signal" | "console" | "element" | "network" | "layout";
322
+ status: "unknown" | "yes" | "no" | "no-fault";
323
+ kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
262
324
  predicate: string;
325
+ reason?: string | undefined;
263
326
  evidence?: unknown;
327
+ declaredBeforeActing?: boolean | undefined;
328
+ grade?: string | undefined;
329
+ couldNotSee?: string[] | undefined;
330
+ checkId?: string | undefined;
331
+ supersedes?: string | undefined;
264
332
  }, {
265
- status: "pass" | "fail";
266
- kind: "state" | "signal" | "console" | "element" | "network" | "layout";
267
333
  predicate: string;
334
+ status?: unknown;
335
+ kind?: unknown;
336
+ reason?: string | undefined;
268
337
  evidence?: unknown;
338
+ declaredBeforeActing?: boolean | undefined;
339
+ grade?: string | undefined;
340
+ couldNotSee?: string[] | undefined;
341
+ checkId?: string | undefined;
342
+ supersedes?: string | undefined;
269
343
  }>;
270
344
  export type RunCheck = z.infer<typeof RunCheckSchema>;
271
345
  /** A flagged risk. `gated` = a policy gate tripped on this surface. */
@@ -344,13 +418,13 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
344
418
  status: z.ZodOptional<z.ZodNumber>;
345
419
  issue: z.ZodString;
346
420
  }, "strip", z.ZodTypeAny, {
347
- url: string;
348
421
  method: string;
422
+ url: string;
349
423
  issue: string;
350
424
  status?: number | undefined;
351
425
  }, {
352
- url: string;
353
426
  method: string;
427
+ url: string;
354
428
  issue: string;
355
429
  status?: number | undefined;
356
430
  }>, "many">>;
@@ -361,14 +435,14 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
361
435
  actual: z.ZodUnknown;
362
436
  ok: z.ZodBoolean;
363
437
  }, "strip", z.ZodTypeAny, {
364
- path: string;
365
438
  ok: boolean;
439
+ path: string;
366
440
  store: string;
367
441
  expected?: unknown;
368
442
  actual?: unknown;
369
443
  }, {
370
- path: string;
371
444
  ok: boolean;
445
+ path: string;
372
446
  store: string;
373
447
  expected?: unknown;
374
448
  actual?: unknown;
@@ -378,12 +452,12 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
378
452
  kind: z.ZodString;
379
453
  summary: z.ZodString;
380
454
  }, "strip", z.ZodTypeAny, {
381
- at: number;
382
455
  kind: string;
456
+ at: number;
383
457
  summary: string;
384
458
  }, {
385
- at: number;
386
459
  kind: string;
460
+ at: number;
387
461
  summary: string;
388
462
  }>, "many">>;
389
463
  }, "strip", z.ZodTypeAny, {
@@ -393,21 +467,21 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
393
467
  level: string;
394
468
  }[];
395
469
  networkAnomalies: {
396
- url: string;
397
470
  method: string;
471
+ url: string;
398
472
  issue: string;
399
473
  status?: number | undefined;
400
474
  }[];
401
475
  stateAssertions: {
402
- path: string;
403
476
  ok: boolean;
477
+ path: string;
404
478
  store: string;
405
479
  expected?: unknown;
406
480
  actual?: unknown;
407
481
  }[];
408
482
  timeline: {
409
- at: number;
410
483
  kind: string;
484
+ at: number;
411
485
  summary: string;
412
486
  }[];
413
487
  }, {
@@ -417,21 +491,21 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
417
491
  level: string;
418
492
  }[] | undefined;
419
493
  networkAnomalies?: {
420
- url: string;
421
494
  method: string;
495
+ url: string;
422
496
  issue: string;
423
497
  status?: number | undefined;
424
498
  }[] | undefined;
425
499
  stateAssertions?: {
426
- path: string;
427
500
  ok: boolean;
501
+ path: string;
428
502
  store: string;
429
503
  expected?: unknown;
430
504
  actual?: unknown;
431
505
  }[] | undefined;
432
506
  timeline?: {
433
- at: number;
434
507
  kind: string;
508
+ at: number;
435
509
  summary: string;
436
510
  }[] | undefined;
437
511
  }>;
@@ -459,8 +533,8 @@ export declare const RepairPacketSchema: z.ZodObject<{
459
533
  expected: string;
460
534
  actual: string;
461
535
  suggestedPrompt: string;
462
- flow?: string | undefined;
463
536
  step?: number | undefined;
537
+ flow?: string | undefined;
464
538
  sourceLocation?: {
465
539
  file: string;
466
540
  component?: string | undefined;
@@ -470,8 +544,8 @@ export declare const RepairPacketSchema: z.ZodObject<{
470
544
  expected: string;
471
545
  actual: string;
472
546
  suggestedPrompt: string;
473
- flow?: string | undefined;
474
547
  step?: number | undefined;
548
+ flow?: string | undefined;
475
549
  sourceLocation?: {
476
550
  file: string;
477
551
  component?: string | undefined;
@@ -485,6 +559,16 @@ export declare const RunVerdictSchema: z.ZodObject<{
485
559
  readonly PASS: "pass";
486
560
  readonly FAIL: "fail";
487
561
  readonly PARTIAL: "partial";
562
+ /**
563
+ * Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
564
+ * to pass and nothing to fail.
565
+ *
566
+ * This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
567
+ * successfully are different facts, and flattening them into one word is how a green light comes
568
+ * to mean "we did not look". It matches how a single action is already judged, where "could not
569
+ * tell" has always been its own answer.
570
+ */
571
+ readonly UNKNOWN: "unknown";
488
572
  }>;
489
573
  reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
490
574
  confidence: z.ZodNativeEnum<{
@@ -493,14 +577,34 @@ export declare const RunVerdictSchema: z.ZodObject<{
493
577
  readonly LOW: "low";
494
578
  }>;
495
579
  blockingRisks: z.ZodDefault<z.ZodNumber>;
580
+ /**
581
+ * Which check this verdict is about, so a later one can say it corrects this.
582
+ *
583
+ * Optional because a run's overall verdict is not about one check. A verdict with no check named
584
+ * cannot be cited, and therefore cannot be corrected -- see revision.ts.
585
+ */
586
+ checkId: z.ZodOptional<z.ZodString>;
587
+ /**
588
+ * The verdict this one replaces, written as `<runId>#<checkId>`.
589
+ *
590
+ * Present only on a correction. The verdict it names is NOT edited: it stays exactly as it was
591
+ * given, and this is a second, later answer that cites it. Rewriting the first in place would
592
+ * erase the fact that it was ever given, and "we always knew" is the shape of the problem this
593
+ * whole system exists to prevent.
594
+ */
595
+ supersedes: z.ZodOptional<z.ZodString>;
496
596
  }, "strip", z.ZodTypeAny, {
497
- status: "partial" | "pass" | "fail";
597
+ status: "pass" | "fail" | "unknown" | "partial";
498
598
  reasons: string[];
499
599
  confidence: "low" | "medium" | "high";
500
600
  blockingRisks: number;
601
+ checkId?: string | undefined;
602
+ supersedes?: string | undefined;
501
603
  }, {
502
- status: "partial" | "pass" | "fail";
604
+ status: "pass" | "fail" | "unknown" | "partial";
503
605
  confidence: "low" | "medium" | "high";
606
+ checkId?: string | undefined;
607
+ supersedes?: string | undefined;
504
608
  reasons?: string[] | undefined;
505
609
  blockingRisks?: number | undefined;
506
610
  }>;
@@ -520,12 +624,12 @@ export declare const RunSignatureSchema: z.ZodObject<{
520
624
  signedAt: number;
521
625
  }>;
522
626
  /**
523
- * The top-level verification-run artifact. Stable contract — additive changes only within
524
- * RUN_FILE_VERSION 1; a breaking change bumps the version. Arrays default to empty so a minimal
525
- * run (e.g. a single smoke flow) still validates.
627
+ * The top-level verification-run artifact. Stable contract — additive changes only within a
628
+ * RUN_FILE_VERSION; a breaking change bumps it. Arrays default to empty so a minimal run (e.g. a
629
+ * single smoke flow) still validates. Version 1 files are still read; see the note on the constant.
526
630
  */
527
631
  export declare const ReticleVerificationRunSchema: z.ZodObject<{
528
- schemaVersion: z.ZodLiteral<1>;
632
+ schemaVersion: z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<2>, z.ZodLiteral<1>]>;
529
633
  runId: z.ZodBranded<z.ZodString, "RunId">;
530
634
  createdAt: z.ZodNumber;
531
635
  durationMs: z.ZodNumber;
@@ -596,6 +700,54 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
596
700
  note?: string | undefined;
597
701
  diffRef?: string | undefined;
598
702
  }>;
703
+ /**
704
+ * Which round of source edits this evidence belongs to.
705
+ *
706
+ * Evidence gathered before the change under test is true about the OLD code. Reporting it as true
707
+ * about the new code is a false pass, and it is the kind nobody notices because everything looks
708
+ * green. Absent when the run had no way to know.
709
+ */
710
+ editEpoch: z.ZodOptional<z.ZodNumber>;
711
+ /**
712
+ * What was verified, in the protocol's own vocabulary.
713
+ *
714
+ * The artifact recorded the project, the agent, the trigger and the edit round, and never what
715
+ * KIND of thing was on the other end -- so a run against a Tauri desktop app and one against a
716
+ * web page were indistinguishable to every reader of this file. `surface` is the field that
717
+ * separates them, and `instance` is the one that says which document the evidence belongs to,
718
+ * which is the difference between evidence about this page and evidence that survived a
719
+ * navigation.
720
+ *
721
+ * `SubjectRef` is the specification's, imported rather than restated. Optional because a run
722
+ * assembled without a live session -- in CI, from flows alone -- genuinely does not know, and
723
+ * an invented subject is worse than an absent one.
724
+ */
725
+ subject: z.ZodOptional<z.ZodObject<{
726
+ surface: z.ZodUnion<[z.ZodNativeEnum<{
727
+ readonly WEB: "web";
728
+ readonly DESKTOP: "desktop";
729
+ readonly MOBILE: "mobile";
730
+ readonly SERVICE: "service";
731
+ readonly GAME: "game";
732
+ readonly DEVICE: "device";
733
+ }>, z.ZodString]>;
734
+ instance: z.ZodString;
735
+ epoch: z.ZodOptional<z.ZodNumber>;
736
+ locator: z.ZodOptional<z.ZodString>;
737
+ revision: z.ZodOptional<z.ZodString>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ surface: string;
740
+ instance: string;
741
+ epoch?: number | undefined;
742
+ locator?: string | undefined;
743
+ revision?: string | undefined;
744
+ }, {
745
+ surface: string;
746
+ instance: string;
747
+ epoch?: number | undefined;
748
+ locator?: string | undefined;
749
+ revision?: string | undefined;
750
+ }>>;
599
751
  changedFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
600
752
  path: z.ZodString;
601
753
  changeKind: z.ZodNativeEnum<{
@@ -651,8 +803,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
651
803
  }, "strip", z.ZodTypeAny, {
652
804
  status: "pass" | "fail" | "healed" | "skipped";
653
805
  name: string;
654
- durationMs: number;
655
806
  steps: number;
807
+ durationMs: number;
656
808
  healed?: {
657
809
  from: string;
658
810
  to: string;
@@ -664,8 +816,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
664
816
  }, {
665
817
  status: "pass" | "fail" | "healed" | "skipped";
666
818
  name: string;
667
- durationMs: number;
668
819
  steps: number;
820
+ durationMs: number;
669
821
  healed?: {
670
822
  from: string;
671
823
  to: string;
@@ -676,30 +828,92 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
676
828
  failureReason?: string | undefined;
677
829
  }>, "many">>;
678
830
  checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
679
- kind: z.ZodNativeEnum<{
680
- readonly SIGNAL: "signal";
681
- readonly NETWORK: "network";
831
+ kind: z.ZodEffects<z.ZodNativeEnum<{
682
832
  readonly ELEMENT: "element";
833
+ readonly TEXT: "text";
834
+ readonly SIGNAL: "signal";
835
+ readonly NET: "net";
683
836
  readonly STATE: "state";
837
+ readonly ROUTE: "route";
684
838
  readonly CONSOLE: "console";
685
- readonly LAYOUT: "layout";
686
- }>;
839
+ readonly ANIMATION: "animation";
840
+ readonly SETTLED: "settled";
841
+ readonly ALL_OF: "allOf";
842
+ readonly ANY_OF: "anyOf";
843
+ readonly NOT: "not";
844
+ }>, "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not", unknown>;
687
845
  predicate: z.ZodString;
688
- status: z.ZodNativeEnum<{
689
- readonly PASS: "pass";
690
- readonly FAIL: "fail";
691
- }>;
846
+ status: z.ZodEffects<z.ZodNativeEnum<{
847
+ readonly YES: "yes";
848
+ readonly NO: "no";
849
+ readonly UNKNOWN: "unknown";
850
+ readonly NO_FAULT: "no-fault";
851
+ }>, "unknown" | "yes" | "no" | "no-fault", unknown>;
692
852
  evidence: z.ZodOptional<z.ZodUnknown>;
853
+ /**
854
+ * Was this claim written down BEFORE the action, or after it?
855
+ *
856
+ * The difference between a check and a rationalisation. Afterwards, anything that happened can be
857
+ * described as what you meant; a claim made in advance can only be met or missed.
858
+ *
859
+ * Optional, and absence is not `false`. `false` says the claim came afterwards. Absent says nobody
860
+ * recorded which, and those are different facts about the evidence.
861
+ */
862
+ declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
863
+ /**
864
+ * What kind of evidence bought this answer.
865
+ *
866
+ * A green paid for with "something matching was on screen" is not the same green as one paid for
867
+ * with "the request went out", and a report that flattens them lets the cheap one pass for the
868
+ * dear one. Free-form because the grades belong to whoever produced the verdict.
869
+ */
870
+ grade: z.ZodOptional<z.ZodString>;
871
+ /**
872
+ * What could not be seen while this was being checked.
873
+ *
874
+ * The property with no prior art: every other test report in existence is silent about its own
875
+ * blind spots. An empty list means nothing was hidden; absence means nobody looked.
876
+ */
877
+ couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
878
+ /**
879
+ * Why the verdict came out this way, in the engine's vocabulary.
880
+ *
881
+ * Carried so a reader -- and the fold that looks for late answers -- can tell an outcome that
882
+ * has not arrived from a capture that could not be read. Both are `unknown`, and only the
883
+ * first is a question that waiting can settle.
884
+ */
885
+ reason: z.ZodOptional<z.ZodString>;
886
+ /** This check's own name, so a later verdict can cite it. See revision.ts. */
887
+ checkId: z.ZodOptional<z.ZodString>;
888
+ /**
889
+ * The earlier check this one corrects, as `<runId>#<checkId>`.
890
+ *
891
+ * Present only on a correction, and the check it names is NOT edited: both stand, so a reader
892
+ * can see that the first answer was given, when it changed, and why.
893
+ */
894
+ supersedes: z.ZodOptional<z.ZodString>;
693
895
  }, "strip", z.ZodTypeAny, {
694
- status: "pass" | "fail";
695
- kind: "state" | "signal" | "console" | "element" | "network" | "layout";
896
+ status: "unknown" | "yes" | "no" | "no-fault";
897
+ kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
696
898
  predicate: string;
899
+ reason?: string | undefined;
697
900
  evidence?: unknown;
901
+ declaredBeforeActing?: boolean | undefined;
902
+ grade?: string | undefined;
903
+ couldNotSee?: string[] | undefined;
904
+ checkId?: string | undefined;
905
+ supersedes?: string | undefined;
698
906
  }, {
699
- status: "pass" | "fail";
700
- kind: "state" | "signal" | "console" | "element" | "network" | "layout";
701
907
  predicate: string;
908
+ status?: unknown;
909
+ kind?: unknown;
910
+ reason?: string | undefined;
702
911
  evidence?: unknown;
912
+ declaredBeforeActing?: boolean | undefined;
913
+ grade?: string | undefined;
914
+ couldNotSee?: string[] | undefined;
915
+ checkId?: string | undefined;
916
+ supersedes?: string | undefined;
703
917
  }>, "many">>;
704
918
  risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
705
919
  surface: z.ZodNativeEnum<{
@@ -774,13 +988,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
774
988
  status: z.ZodOptional<z.ZodNumber>;
775
989
  issue: z.ZodString;
776
990
  }, "strip", z.ZodTypeAny, {
777
- url: string;
778
991
  method: string;
992
+ url: string;
779
993
  issue: string;
780
994
  status?: number | undefined;
781
995
  }, {
782
- url: string;
783
996
  method: string;
997
+ url: string;
784
998
  issue: string;
785
999
  status?: number | undefined;
786
1000
  }>, "many">>;
@@ -791,14 +1005,14 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
791
1005
  actual: z.ZodUnknown;
792
1006
  ok: z.ZodBoolean;
793
1007
  }, "strip", z.ZodTypeAny, {
794
- path: string;
795
1008
  ok: boolean;
1009
+ path: string;
796
1010
  store: string;
797
1011
  expected?: unknown;
798
1012
  actual?: unknown;
799
1013
  }, {
800
- path: string;
801
1014
  ok: boolean;
1015
+ path: string;
802
1016
  store: string;
803
1017
  expected?: unknown;
804
1018
  actual?: unknown;
@@ -808,12 +1022,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
808
1022
  kind: z.ZodString;
809
1023
  summary: z.ZodString;
810
1024
  }, "strip", z.ZodTypeAny, {
811
- at: number;
812
1025
  kind: string;
1026
+ at: number;
813
1027
  summary: string;
814
1028
  }, {
815
- at: number;
816
1029
  kind: string;
1030
+ at: number;
817
1031
  summary: string;
818
1032
  }>, "many">>;
819
1033
  }, "strip", z.ZodTypeAny, {
@@ -823,21 +1037,21 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
823
1037
  level: string;
824
1038
  }[];
825
1039
  networkAnomalies: {
826
- url: string;
827
1040
  method: string;
1041
+ url: string;
828
1042
  issue: string;
829
1043
  status?: number | undefined;
830
1044
  }[];
831
1045
  stateAssertions: {
832
- path: string;
833
1046
  ok: boolean;
1047
+ path: string;
834
1048
  store: string;
835
1049
  expected?: unknown;
836
1050
  actual?: unknown;
837
1051
  }[];
838
1052
  timeline: {
839
- at: number;
840
1053
  kind: string;
1054
+ at: number;
841
1055
  summary: string;
842
1056
  }[];
843
1057
  }, {
@@ -847,21 +1061,21 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
847
1061
  level: string;
848
1062
  }[] | undefined;
849
1063
  networkAnomalies?: {
850
- url: string;
851
1064
  method: string;
1065
+ url: string;
852
1066
  issue: string;
853
1067
  status?: number | undefined;
854
1068
  }[] | undefined;
855
1069
  stateAssertions?: {
856
- path: string;
857
1070
  ok: boolean;
1071
+ path: string;
858
1072
  store: string;
859
1073
  expected?: unknown;
860
1074
  actual?: unknown;
861
1075
  }[] | undefined;
862
1076
  timeline?: {
863
- at: number;
864
1077
  kind: string;
1078
+ at: number;
865
1079
  summary: string;
866
1080
  }[] | undefined;
867
1081
  }>;
@@ -889,8 +1103,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
889
1103
  expected: string;
890
1104
  actual: string;
891
1105
  suggestedPrompt: string;
892
- flow?: string | undefined;
893
1106
  step?: number | undefined;
1107
+ flow?: string | undefined;
894
1108
  sourceLocation?: {
895
1109
  file: string;
896
1110
  component?: string | undefined;
@@ -900,8 +1114,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
900
1114
  expected: string;
901
1115
  actual: string;
902
1116
  suggestedPrompt: string;
903
- flow?: string | undefined;
904
1117
  step?: number | undefined;
1118
+ flow?: string | undefined;
905
1119
  sourceLocation?: {
906
1120
  file: string;
907
1121
  component?: string | undefined;
@@ -913,8 +1127,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
913
1127
  expected: string;
914
1128
  actual: string;
915
1129
  suggestedPrompt: string;
916
- flow?: string | undefined;
917
1130
  step?: number | undefined;
1131
+ flow?: string | undefined;
918
1132
  sourceLocation?: {
919
1133
  file: string;
920
1134
  component?: string | undefined;
@@ -926,8 +1140,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
926
1140
  expected: string;
927
1141
  actual: string;
928
1142
  suggestedPrompt: string;
929
- flow?: string | undefined;
930
1143
  step?: number | undefined;
1144
+ flow?: string | undefined;
931
1145
  sourceLocation?: {
932
1146
  file: string;
933
1147
  component?: string | undefined;
@@ -940,6 +1154,16 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
940
1154
  readonly PASS: "pass";
941
1155
  readonly FAIL: "fail";
942
1156
  readonly PARTIAL: "partial";
1157
+ /**
1158
+ * Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
1159
+ * to pass and nothing to fail.
1160
+ *
1161
+ * This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
1162
+ * successfully are different facts, and flattening them into one word is how a green light comes
1163
+ * to mean "we did not look". It matches how a single action is already judged, where "could not
1164
+ * tell" has always been its own answer.
1165
+ */
1166
+ readonly UNKNOWN: "unknown";
943
1167
  }>;
944
1168
  reasons: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
945
1169
  confidence: z.ZodNativeEnum<{
@@ -948,14 +1172,34 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
948
1172
  readonly LOW: "low";
949
1173
  }>;
950
1174
  blockingRisks: z.ZodDefault<z.ZodNumber>;
1175
+ /**
1176
+ * Which check this verdict is about, so a later one can say it corrects this.
1177
+ *
1178
+ * Optional because a run's overall verdict is not about one check. A verdict with no check named
1179
+ * cannot be cited, and therefore cannot be corrected -- see revision.ts.
1180
+ */
1181
+ checkId: z.ZodOptional<z.ZodString>;
1182
+ /**
1183
+ * The verdict this one replaces, written as `<runId>#<checkId>`.
1184
+ *
1185
+ * Present only on a correction. The verdict it names is NOT edited: it stays exactly as it was
1186
+ * given, and this is a second, later answer that cites it. Rewriting the first in place would
1187
+ * erase the fact that it was ever given, and "we always knew" is the shape of the problem this
1188
+ * whole system exists to prevent.
1189
+ */
1190
+ supersedes: z.ZodOptional<z.ZodString>;
951
1191
  }, "strip", z.ZodTypeAny, {
952
- status: "partial" | "pass" | "fail";
1192
+ status: "pass" | "fail" | "unknown" | "partial";
953
1193
  reasons: string[];
954
1194
  confidence: "low" | "medium" | "high";
955
1195
  blockingRisks: number;
1196
+ checkId?: string | undefined;
1197
+ supersedes?: string | undefined;
956
1198
  }, {
957
- status: "partial" | "pass" | "fail";
1199
+ status: "pass" | "fail" | "unknown" | "partial";
958
1200
  confidence: "low" | "medium" | "high";
1201
+ checkId?: string | undefined;
1202
+ supersedes?: string | undefined;
959
1203
  reasons?: string[] | undefined;
960
1204
  blockingRisks?: number | undefined;
961
1205
  }>;
@@ -976,8 +1220,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
976
1220
  flows: {
977
1221
  status: "pass" | "fail" | "healed" | "skipped";
978
1222
  name: string;
979
- durationMs: number;
980
1223
  steps: number;
1224
+ durationMs: number;
981
1225
  healed?: {
982
1226
  from: string;
983
1227
  to: string;
@@ -987,6 +1231,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
987
1231
  evidenceRef?: string | undefined;
988
1232
  failureReason?: string | undefined;
989
1233
  }[];
1234
+ createdAt: number;
990
1235
  runId: string & z.BRAND<"RunId">;
991
1236
  agent: {
992
1237
  id: string;
@@ -1001,7 +1246,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1001
1246
  previewUrl?: string | undefined;
1002
1247
  };
1003
1248
  durationMs: number;
1004
- createdAt: number;
1005
1249
  evidence: {
1006
1250
  consoleErrors: {
1007
1251
  message: string;
@@ -1009,25 +1253,25 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1009
1253
  level: string;
1010
1254
  }[];
1011
1255
  networkAnomalies: {
1012
- url: string;
1013
1256
  method: string;
1257
+ url: string;
1014
1258
  issue: string;
1015
1259
  status?: number | undefined;
1016
1260
  }[];
1017
1261
  stateAssertions: {
1018
- path: string;
1019
1262
  ok: boolean;
1263
+ path: string;
1020
1264
  store: string;
1021
1265
  expected?: unknown;
1022
1266
  actual?: unknown;
1023
1267
  }[];
1024
1268
  timeline: {
1025
- at: number;
1026
1269
  kind: string;
1270
+ at: number;
1027
1271
  summary: string;
1028
1272
  }[];
1029
1273
  };
1030
- schemaVersion: 1;
1274
+ schemaVersion: 1 | 2 | 3;
1031
1275
  profile: "dev" | "prod-preview";
1032
1276
  trigger: {
1033
1277
  kind: "manual" | "edit" | "ci" | "oem";
@@ -1040,10 +1284,16 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1040
1284
  risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
1041
1285
  }[];
1042
1286
  checks: {
1043
- status: "pass" | "fail";
1044
- kind: "state" | "signal" | "console" | "element" | "network" | "layout";
1287
+ status: "unknown" | "yes" | "no" | "no-fault";
1288
+ kind: "signal" | "text" | "net" | "state" | "element" | "route" | "console" | "animation" | "settled" | "allOf" | "anyOf" | "not";
1045
1289
  predicate: string;
1290
+ reason?: string | undefined;
1046
1291
  evidence?: unknown;
1292
+ declaredBeforeActing?: boolean | undefined;
1293
+ grade?: string | undefined;
1294
+ couldNotSee?: string[] | undefined;
1295
+ checkId?: string | undefined;
1296
+ supersedes?: string | undefined;
1047
1297
  }[];
1048
1298
  risks: {
1049
1299
  surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
@@ -1057,18 +1307,28 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1057
1307
  } | undefined;
1058
1308
  }[];
1059
1309
  verdict: {
1060
- status: "partial" | "pass" | "fail";
1310
+ status: "pass" | "fail" | "unknown" | "partial";
1061
1311
  reasons: string[];
1062
1312
  confidence: "low" | "medium" | "high";
1063
1313
  blockingRisks: number;
1314
+ checkId?: string | undefined;
1315
+ supersedes?: string | undefined;
1064
1316
  };
1317
+ editEpoch?: number | undefined;
1318
+ subject?: {
1319
+ surface: string;
1320
+ instance: string;
1321
+ epoch?: number | undefined;
1322
+ locator?: string | undefined;
1323
+ revision?: string | undefined;
1324
+ } | undefined;
1065
1325
  repair?: {
1066
1326
  failurePackets: {
1067
1327
  expected: string;
1068
1328
  actual: string;
1069
1329
  suggestedPrompt: string;
1070
- flow?: string | undefined;
1071
1330
  step?: number | undefined;
1331
+ flow?: string | undefined;
1072
1332
  sourceLocation?: {
1073
1333
  file: string;
1074
1334
  component?: string | undefined;
@@ -1082,6 +1342,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1082
1342
  signedAt: number;
1083
1343
  } | undefined;
1084
1344
  }, {
1345
+ createdAt: number;
1085
1346
  runId: string;
1086
1347
  agent: {
1087
1348
  id: string;
@@ -1096,7 +1357,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1096
1357
  previewUrl?: string | undefined;
1097
1358
  };
1098
1359
  durationMs: number;
1099
- createdAt: number;
1100
1360
  evidence: {
1101
1361
  consoleErrors?: {
1102
1362
  message: string;
@@ -1104,25 +1364,25 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1104
1364
  level: string;
1105
1365
  }[] | undefined;
1106
1366
  networkAnomalies?: {
1107
- url: string;
1108
1367
  method: string;
1368
+ url: string;
1109
1369
  issue: string;
1110
1370
  status?: number | undefined;
1111
1371
  }[] | undefined;
1112
1372
  stateAssertions?: {
1113
- path: string;
1114
1373
  ok: boolean;
1374
+ path: string;
1115
1375
  store: string;
1116
1376
  expected?: unknown;
1117
1377
  actual?: unknown;
1118
1378
  }[] | undefined;
1119
1379
  timeline?: {
1120
- at: number;
1121
1380
  kind: string;
1381
+ at: number;
1122
1382
  summary: string;
1123
1383
  }[] | undefined;
1124
1384
  };
1125
- schemaVersion: 1;
1385
+ schemaVersion: 1 | 2 | 3;
1126
1386
  profile: "dev" | "prod-preview";
1127
1387
  trigger: {
1128
1388
  kind: "manual" | "edit" | "ci" | "oem";
@@ -1130,16 +1390,18 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1130
1390
  diffRef?: string | undefined;
1131
1391
  };
1132
1392
  verdict: {
1133
- status: "partial" | "pass" | "fail";
1393
+ status: "pass" | "fail" | "unknown" | "partial";
1134
1394
  confidence: "low" | "medium" | "high";
1395
+ checkId?: string | undefined;
1396
+ supersedes?: string | undefined;
1135
1397
  reasons?: string[] | undefined;
1136
1398
  blockingRisks?: number | undefined;
1137
1399
  };
1138
1400
  flows?: {
1139
1401
  status: "pass" | "fail" | "healed" | "skipped";
1140
1402
  name: string;
1141
- durationMs: number;
1142
1403
  steps: number;
1404
+ durationMs: number;
1143
1405
  healed?: {
1144
1406
  from: string;
1145
1407
  to: string;
@@ -1149,16 +1411,30 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1149
1411
  evidenceRef?: string | undefined;
1150
1412
  failureReason?: string | undefined;
1151
1413
  }[] | undefined;
1414
+ editEpoch?: number | undefined;
1415
+ subject?: {
1416
+ surface: string;
1417
+ instance: string;
1418
+ epoch?: number | undefined;
1419
+ locator?: string | undefined;
1420
+ revision?: string | undefined;
1421
+ } | undefined;
1152
1422
  changedFiles?: {
1153
1423
  path: string;
1154
1424
  changeKind: "added" | "modified" | "deleted";
1155
1425
  risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
1156
1426
  }[] | undefined;
1157
1427
  checks?: {
1158
- status: "pass" | "fail";
1159
- kind: "state" | "signal" | "console" | "element" | "network" | "layout";
1160
1428
  predicate: string;
1429
+ status?: unknown;
1430
+ kind?: unknown;
1431
+ reason?: string | undefined;
1161
1432
  evidence?: unknown;
1433
+ declaredBeforeActing?: boolean | undefined;
1434
+ grade?: string | undefined;
1435
+ couldNotSee?: string[] | undefined;
1436
+ checkId?: string | undefined;
1437
+ supersedes?: string | undefined;
1162
1438
  }[] | undefined;
1163
1439
  risks?: {
1164
1440
  surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
@@ -1176,8 +1452,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1176
1452
  expected: string;
1177
1453
  actual: string;
1178
1454
  suggestedPrompt: string;
1179
- flow?: string | undefined;
1180
1455
  step?: number | undefined;
1456
+ flow?: string | undefined;
1181
1457
  sourceLocation?: {
1182
1458
  file: string;
1183
1459
  component?: string | undefined;