@reticlehq/core 3.6.0 → 3.8.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 (133) hide show
  1. package/dist/activation-entry.d.ts +9 -0
  2. package/dist/activation-entry.js +9 -0
  3. package/dist/artifacts/artifacts-entry.d.ts +2 -0
  4. package/dist/artifacts/artifacts-entry.js +2 -0
  5. package/dist/artifacts/drive-script.d.ts +222 -116
  6. package/dist/artifacts/drive-script.js +24 -1
  7. package/dist/artifacts/flow-constants.d.ts +33 -0
  8. package/dist/artifacts/flow-constants.js +35 -0
  9. package/dist/artifacts/flow-expect-flat.d.ts +8 -8
  10. package/dist/artifacts/flow-results.d.ts +461 -0
  11. package/dist/artifacts/flow-results.js +1 -0
  12. package/dist/artifacts/flow-types.d.ts +177 -543
  13. package/dist/artifacts/flow-types.js +17 -2
  14. package/dist/artifacts/harness-credits.d.ts +42 -0
  15. package/dist/artifacts/harness-credits.js +72 -0
  16. package/dist/artifacts/harness-map.d.ts +98 -0
  17. package/dist/artifacts/harness-map.js +36 -0
  18. package/dist/artifacts/impact.d.ts +355 -149
  19. package/dist/artifacts/impact.js +84 -49
  20. package/dist/artifacts/journal.d.ts +81 -11
  21. package/dist/artifacts/journal.js +39 -0
  22. package/dist/artifacts/prompt-context.d.ts +12 -0
  23. package/dist/artifacts/prompt-context.js +14 -3
  24. package/dist/artifacts/screenshot-upload.d.ts +51 -0
  25. package/dist/artifacts/screenshot-upload.js +26 -0
  26. package/dist/graph/app-graph.d.ts +137 -0
  27. package/dist/graph/app-graph.js +498 -0
  28. package/dist/hooks/hook-events.d.ts +26 -26
  29. package/dist/hud-entry.d.ts +1 -0
  30. package/dist/hud-entry.js +2 -0
  31. package/dist/identity/checkout.d.ts +41 -0
  32. package/dist/identity/checkout.js +118 -0
  33. package/dist/identity/state-dir.d.ts +23 -0
  34. package/dist/identity/state-dir.js +43 -0
  35. package/dist/index.d.ts +15 -0
  36. package/dist/index.js +15 -0
  37. package/dist/onboarding.d.ts +30 -1
  38. package/dist/onboarding.js +25 -0
  39. package/dist/realm/registry.js +19 -1
  40. package/dist/registry/dev-server-registry.d.ts +2 -2
  41. package/dist/schema/command-message.json +30 -0
  42. package/dist/schema/command-name.json +3 -1
  43. package/dist/schema/event-message.json +3 -1
  44. package/dist/schema/event-payloads.json +156 -3
  45. package/dist/schema/event-type.json +3 -1
  46. package/dist/schema/hello-message.json +21 -0
  47. package/dist/schema/reticle-event.json +3 -1
  48. package/dist/schema/reticle-message.json +54 -1
  49. package/dist/telemetry-bug.d.ts +169 -0
  50. package/dist/telemetry-bug.js +123 -0
  51. package/dist/telemetry-entry.d.ts +2 -1
  52. package/dist/telemetry-entry.js +2 -1
  53. package/dist/telemetry-feedback.d.ts +16 -2
  54. package/dist/telemetry-feedback.js +19 -0
  55. package/dist/telemetry-session.d.ts +91 -2
  56. package/dist/telemetry-session.js +65 -0
  57. package/dist/telemetry-signals.d.ts +557 -0
  58. package/dist/telemetry-signals.js +225 -0
  59. package/dist/telemetry.d.ts +649 -296
  60. package/dist/telemetry.js +110 -119
  61. package/dist/verdict/check-sentence.d.ts +34 -0
  62. package/dist/verdict/check-sentence.js +228 -0
  63. package/dist/verdict/consequence.d.ts +15 -0
  64. package/dist/verdict/consequence.js +11 -0
  65. package/dist/verdict/disparity.d.ts +105 -0
  66. package/dist/verdict/disparity.js +40 -0
  67. package/dist/verdict/findings.d.ts +16 -0
  68. package/dist/verdict/findings.js +22 -0
  69. package/dist/verdict/instrumentation-coverage.d.ts +84 -0
  70. package/dist/verdict/instrumentation-coverage.js +182 -0
  71. package/dist/verdict/instrumentation-gap.d.ts +79 -0
  72. package/dist/verdict/instrumentation-gap.js +65 -1
  73. package/dist/verdict/intent.d.ts +19 -5
  74. package/dist/verdict/intent.js +13 -1
  75. package/dist/verdict/predicate-tree.d.ts +17 -0
  76. package/dist/verdict/predicate-tree.js +37 -0
  77. package/dist/verdict/predicate.d.ts +16 -1
  78. package/dist/verdict/predicate.js +188 -13
  79. package/dist/verdict/property-assertion.d.ts +2 -2
  80. package/dist/verdict/run-report.d.ts +166 -0
  81. package/dist/verdict/run-report.js +53 -0
  82. package/dist/verdict/security.d.ts +60 -1
  83. package/dist/verdict/security.js +174 -12
  84. package/dist/verdict/verification-run.d.ts +713 -68
  85. package/dist/verdict/verification-run.js +113 -0
  86. package/dist/verdict/verify-progress.d.ts +6 -6
  87. package/dist/wire/constants/constants.d.ts +69 -155
  88. package/dist/wire/constants/constants.js +78 -159
  89. package/dist/wire/constants/discovery.d.ts +4 -4
  90. package/dist/wire/constants/discovery.js +4 -4
  91. package/dist/wire/constants/event-types.d.ts +35 -1
  92. package/dist/wire/constants/event-types.js +33 -1
  93. package/dist/wire/constants/hud-controls.js +15 -5
  94. package/dist/wire/constants/hud-use.d.ts +33 -4
  95. package/dist/wire/constants/hud-use.js +30 -4
  96. package/dist/wire/constants/mcp-wire.d.ts +26 -0
  97. package/dist/wire/constants/mcp-wire.js +26 -0
  98. package/dist/wire/constants/response-body-reason.d.ts +19 -0
  99. package/dist/wire/constants/response-body-reason.js +18 -0
  100. package/dist/wire/constants/reticle-chrome.d.ts +19 -0
  101. package/dist/wire/constants/reticle-chrome.js +19 -0
  102. package/dist/wire/constants/reticle-env.d.ts +138 -0
  103. package/dist/wire/constants/reticle-env.js +138 -0
  104. package/dist/wire/constants/session-constants.d.ts +26 -2
  105. package/dist/wire/constants/session-constants.js +26 -2
  106. package/dist/wire/desktop-contract.d.ts +8 -0
  107. package/dist/wire/desktop-contract.js +11 -0
  108. package/dist/wire/event-payloads.d.ts +202 -36
  109. package/dist/wire/event-payloads.js +100 -16
  110. package/dist/wire/messages.d.ts +193 -54
  111. package/dist/wire/messages.js +25 -1
  112. package/dist/wire/narrow.d.ts +6 -0
  113. package/dist/wire/narrow.js +26 -0
  114. package/dist/wire/next-step.d.ts +90 -0
  115. package/dist/wire/next-step.js +37 -0
  116. package/dist/wire/platform-link.d.ts +84 -0
  117. package/dist/wire/platform-link.js +57 -6
  118. package/dist/wire/production/activation-ticket.d.ts +64 -0
  119. package/dist/wire/production/activation-ticket.js +148 -0
  120. package/dist/wire/production/hello-mode.d.ts +35 -0
  121. package/dist/wire/production/hello-mode.js +32 -0
  122. package/dist/wire/production/production-policy.d.ts +138 -0
  123. package/dist/wire/production/production-policy.js +133 -0
  124. package/dist/wire/tool-names.d.ts +4 -0
  125. package/dist/wire/tool-names.js +4 -0
  126. package/dist/wire/types.d.ts +90 -52
  127. package/dist/wire/types.js +5 -0
  128. package/dist/words/notices.d.ts +1 -1
  129. package/dist/words/notices.js +1 -1
  130. package/dist/words/upgrade.js +1 -1
  131. package/dist/words/writing-rule.d.ts +14 -0
  132. package/dist/words/writing-rule.js +17 -0
  133. package/package.json +5 -1
@@ -60,6 +60,17 @@ export declare const RunFlowStatus: {
60
60
  readonly HEALED: "healed";
61
61
  };
62
62
  export type RunFlowStatus = (typeof RunFlowStatus)[keyof typeof RunFlowStatus];
63
+ /**
64
+ * What one drive came to, and the only place that is decided. A check that came back no is the only
65
+ * failure. Checks nobody could decide, or a goal the model judged missed with no check against it,
66
+ * are NOT PROVED (`skipped`): undecided evidence calls for a better check, never a code change, and
67
+ * a drive with nothing failed was reported "1 broken" before this rule was one rule.
68
+ */
69
+ export declare function driveFlowStatus(checks: {
70
+ held: number;
71
+ failed: number;
72
+ goalMet?: boolean | undefined;
73
+ }): RunFlowStatus;
63
74
  /**
64
75
  * The kind of standalone assertion captured outside a flow.
65
76
  *
@@ -205,6 +216,105 @@ export type RunChangedFile = z.infer<typeof RunChangedFileSchema>;
205
216
  export declare const RUN_STEP_RESULTS_MAX = 200;
206
217
  export declare const RUN_TEXT_MAX = 300;
207
218
  export declare const RUN_RECORDING_MAX_BYTES: number;
219
+ /**
220
+ * Where a step screenshot's pixels came from. `browser` is a real screenshot (CDP, a leased page, or
221
+ * the desktop shell's own window capture); `rendered` is the page drawn in-page by the SDK, which can
222
+ * miss cross-origin images and fonts, so a reader is told it is approximate.
223
+ */
224
+ export declare const ScreenshotSource: {
225
+ readonly BROWSER: "browser";
226
+ readonly RENDERED: "rendered";
227
+ };
228
+ export type ScreenshotSource = (typeof ScreenshotSource)[keyof typeof ScreenshotSource];
229
+ /** How a step screenshot is taken and kept — shared by the daemon, the SDK and the platform. */
230
+ export declare const STEP_SCREENSHOT: {
231
+ /** `.reticle/visual/runs/<runId>/<seq>-<tool>.jpg` */
232
+ readonly RUNS_DIR: "runs";
233
+ /** One line per landed screenshot, beside the images: what the run artifact and the upload read. */
234
+ readonly MANIFEST_FILE: "shots.jsonl";
235
+ readonly JPEG_QUALITY: 0.7;
236
+ readonly MAX_SIDE_PX: 1600;
237
+ /** The platform refuses more than this for one run, so the daemon stops taking them there. */
238
+ readonly MAX_PER_RUN: 300;
239
+ /** The platform refuses an image larger than this, decoded. */
240
+ readonly MAX_BYTES: number;
241
+ /**
242
+ * The `tool` of a frame: a picture taken between steps while Reticle drives a tab, about once a
243
+ * second. Frames share the run's `seq`, so the shots in `seq` order play the run as a film.
244
+ */
245
+ readonly FRAME_TOOL: "frame";
246
+ };
247
+ /** One step's screenshot as a run artifact records it. `file` is relative to the run's directory. */
248
+ export declare const StepScreenshotSchema: z.ZodObject<{
249
+ file: z.ZodString;
250
+ source: z.ZodNativeEnum<{
251
+ readonly BROWSER: "browser";
252
+ readonly RENDERED: "rendered";
253
+ }>;
254
+ width: z.ZodNumber;
255
+ height: z.ZodNumber;
256
+ sha256: z.ZodString;
257
+ }, "strip", z.ZodTypeAny, {
258
+ file: string;
259
+ source: "browser" | "rendered";
260
+ width: number;
261
+ height: number;
262
+ sha256: string;
263
+ }, {
264
+ file: string;
265
+ source: "browser" | "rendered";
266
+ width: number;
267
+ height: number;
268
+ sha256: string;
269
+ }>;
270
+ export type StepScreenshot = z.infer<typeof StepScreenshotSchema>;
271
+ /** Every screenshot a run took, in order — including the actions that produced no verdict. */
272
+ export declare const RunScreenshotSchema: z.ZodObject<{
273
+ file: z.ZodString;
274
+ source: z.ZodNativeEnum<{
275
+ readonly BROWSER: "browser";
276
+ readonly RENDERED: "rendered";
277
+ }>;
278
+ width: z.ZodNumber;
279
+ height: z.ZodNumber;
280
+ sha256: z.ZodString;
281
+ } & {
282
+ seq: z.ZodNumber;
283
+ tool: z.ZodString;
284
+ /** The flow step it belongs to, as `<flow>#<step>`, when it was taken during a replay. */
285
+ step: z.ZodOptional<z.ZodString>;
286
+ /** Taken for a call that produced a verdict — what lets the run pair it with its check. */
287
+ verdict: z.ZodOptional<z.ZodBoolean>;
288
+ /** The check this picture is of (see `RunCheck.checkId`), when it could be paired with one. */
289
+ checkId: z.ZodOptional<z.ZodString>;
290
+ /** The journal action it was taken for: how a run pairs it with its check (`RunCheck.actionId`). */
291
+ actionId: z.ZodOptional<z.ZodString>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ file: string;
294
+ source: "browser" | "rendered";
295
+ width: number;
296
+ height: number;
297
+ sha256: string;
298
+ seq: number;
299
+ tool: string;
300
+ step?: string | undefined;
301
+ verdict?: boolean | undefined;
302
+ checkId?: string | undefined;
303
+ actionId?: string | undefined;
304
+ }, {
305
+ file: string;
306
+ source: "browser" | "rendered";
307
+ width: number;
308
+ height: number;
309
+ sha256: string;
310
+ seq: number;
311
+ tool: string;
312
+ step?: string | undefined;
313
+ verdict?: boolean | undefined;
314
+ checkId?: string | undefined;
315
+ actionId?: string | undefined;
316
+ }>;
317
+ export type RunScreenshot = z.infer<typeof RunScreenshotSchema>;
208
318
  /** One step of a replayed flow, as synced: its outcome and the pages it ran on and led to. */
209
319
  export declare const RunStepResultSchema: z.ZodObject<{
210
320
  step: z.ZodNumber;
@@ -216,24 +326,61 @@ export declare const RunStepResultSchema: z.ZodObject<{
216
326
  error: z.ZodOptional<z.ZodString>;
217
327
  /** The drift's reason kind, when the step drifted. */
218
328
  drift: z.ZodOptional<z.ZodString>;
329
+ /** What the page looked like when this step's outcome was decided. */
330
+ screenshot: z.ZodOptional<z.ZodObject<{
331
+ file: z.ZodString;
332
+ source: z.ZodNativeEnum<{
333
+ readonly BROWSER: "browser";
334
+ readonly RENDERED: "rendered";
335
+ }>;
336
+ width: z.ZodNumber;
337
+ height: z.ZodNumber;
338
+ sha256: z.ZodString;
339
+ }, "strip", z.ZodTypeAny, {
340
+ file: string;
341
+ source: "browser" | "rendered";
342
+ width: number;
343
+ height: number;
344
+ sha256: string;
345
+ }, {
346
+ file: string;
347
+ source: "browser" | "rendered";
348
+ width: number;
349
+ height: number;
350
+ sha256: string;
351
+ }>>;
219
352
  }, "strip", z.ZodTypeAny, {
353
+ anchor: string;
220
354
  ok: boolean;
221
355
  step: number;
222
- anchor: string;
223
356
  drift?: string | undefined;
224
357
  error?: string | undefined;
225
358
  page?: string | undefined;
226
359
  endPage?: string | undefined;
227
360
  consequence?: string | undefined;
361
+ screenshot?: {
362
+ file: string;
363
+ source: "browser" | "rendered";
364
+ width: number;
365
+ height: number;
366
+ sha256: string;
367
+ } | undefined;
228
368
  }, {
369
+ anchor: string;
229
370
  ok: boolean;
230
371
  step: number;
231
- anchor: string;
232
372
  drift?: string | undefined;
233
373
  error?: string | undefined;
234
374
  page?: string | undefined;
235
375
  endPage?: string | undefined;
236
376
  consequence?: string | undefined;
377
+ screenshot?: {
378
+ file: string;
379
+ source: "browser" | "rendered";
380
+ width: number;
381
+ height: number;
382
+ sha256: string;
383
+ } | undefined;
237
384
  }>;
238
385
  export type RunStepResult = z.infer<typeof RunStepResultSchema>;
239
386
  /**
@@ -292,24 +439,61 @@ export declare const RunFlowResultSchema: z.ZodObject<{
292
439
  error: z.ZodOptional<z.ZodString>;
293
440
  /** The drift's reason kind, when the step drifted. */
294
441
  drift: z.ZodOptional<z.ZodString>;
442
+ /** What the page looked like when this step's outcome was decided. */
443
+ screenshot: z.ZodOptional<z.ZodObject<{
444
+ file: z.ZodString;
445
+ source: z.ZodNativeEnum<{
446
+ readonly BROWSER: "browser";
447
+ readonly RENDERED: "rendered";
448
+ }>;
449
+ width: z.ZodNumber;
450
+ height: z.ZodNumber;
451
+ sha256: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ file: string;
454
+ source: "browser" | "rendered";
455
+ width: number;
456
+ height: number;
457
+ sha256: string;
458
+ }, {
459
+ file: string;
460
+ source: "browser" | "rendered";
461
+ width: number;
462
+ height: number;
463
+ sha256: string;
464
+ }>>;
295
465
  }, "strip", z.ZodTypeAny, {
466
+ anchor: string;
296
467
  ok: boolean;
297
468
  step: number;
298
- anchor: string;
299
469
  drift?: string | undefined;
300
470
  error?: string | undefined;
301
471
  page?: string | undefined;
302
472
  endPage?: string | undefined;
303
473
  consequence?: string | undefined;
474
+ screenshot?: {
475
+ file: string;
476
+ source: "browser" | "rendered";
477
+ width: number;
478
+ height: number;
479
+ sha256: string;
480
+ } | undefined;
304
481
  }, {
482
+ anchor: string;
305
483
  ok: boolean;
306
484
  step: number;
307
- anchor: string;
308
485
  drift?: string | undefined;
309
486
  error?: string | undefined;
310
487
  page?: string | undefined;
311
488
  endPage?: string | undefined;
312
489
  consequence?: string | undefined;
490
+ screenshot?: {
491
+ file: string;
492
+ source: "browser" | "rendered";
493
+ width: number;
494
+ height: number;
495
+ sha256: string;
496
+ } | undefined;
313
497
  }>, "many">>;
314
498
  /** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
315
499
  recording: z.ZodOptional<z.ZodObject<{
@@ -325,9 +509,9 @@ export declare const RunFlowResultSchema: z.ZodObject<{
325
509
  /** True when the recording was too large to carry. */
326
510
  recordingOmitted: z.ZodOptional<z.ZodBoolean>;
327
511
  }, "strip", z.ZodTypeAny, {
512
+ name: string;
328
513
  status: "pass" | "fail" | "healed" | "skipped";
329
514
  steps: number;
330
- name: string;
331
515
  durationMs: number;
332
516
  recording?: {
333
517
  steps: unknown[];
@@ -343,20 +527,27 @@ export declare const RunFlowResultSchema: z.ZodObject<{
343
527
  evidenceRef?: string | undefined;
344
528
  failureReason?: string | undefined;
345
529
  stepResults?: {
530
+ anchor: string;
346
531
  ok: boolean;
347
532
  step: number;
348
- anchor: string;
349
533
  drift?: string | undefined;
350
534
  error?: string | undefined;
351
535
  page?: string | undefined;
352
536
  endPage?: string | undefined;
353
537
  consequence?: string | undefined;
538
+ screenshot?: {
539
+ file: string;
540
+ source: "browser" | "rendered";
541
+ width: number;
542
+ height: number;
543
+ sha256: string;
544
+ } | undefined;
354
545
  }[] | undefined;
355
546
  recordingOmitted?: boolean | undefined;
356
547
  }, {
548
+ name: string;
357
549
  status: "pass" | "fail" | "healed" | "skipped";
358
550
  steps: number;
359
- name: string;
360
551
  durationMs: number;
361
552
  recording?: {
362
553
  steps: unknown[];
@@ -372,14 +563,21 @@ export declare const RunFlowResultSchema: z.ZodObject<{
372
563
  evidenceRef?: string | undefined;
373
564
  failureReason?: string | undefined;
374
565
  stepResults?: {
566
+ anchor: string;
375
567
  ok: boolean;
376
568
  step: number;
377
- anchor: string;
378
569
  drift?: string | undefined;
379
570
  error?: string | undefined;
380
571
  page?: string | undefined;
381
572
  endPage?: string | undefined;
382
573
  consequence?: string | undefined;
574
+ screenshot?: {
575
+ file: string;
576
+ source: "browser" | "rendered";
577
+ width: number;
578
+ height: number;
579
+ sha256: string;
580
+ } | undefined;
383
581
  }[] | undefined;
384
582
  recordingOmitted?: boolean | undefined;
385
583
  }>;
@@ -426,6 +624,13 @@ export declare const RunCheckSchema: z.ZodObject<{
426
624
  * recorded which, and those are different facts about the evidence.
427
625
  */
428
626
  declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
627
+ /**
628
+ * What the check required and what it saw, in the engine's words, when it said — "an element
629
+ * matching {"testid":"pay"} in state 'enabled'" and "present, visible, disabled". Without them an
630
+ * issue a CI run found had no Expected or Actual to show. Optional: older runs carry neither.
631
+ */
632
+ expected: z.ZodOptional<z.ZodString>;
633
+ observed: z.ZodOptional<z.ZodString>;
429
634
  /**
430
635
  * What kind of evidence bought this answer.
431
636
  *
@@ -451,6 +656,40 @@ export declare const RunCheckSchema: z.ZodObject<{
451
656
  reason: z.ZodOptional<z.ZodString>;
452
657
  /** This check's own name, so a later verdict can cite it. See revision.ts. */
453
658
  checkId: z.ZodOptional<z.ZodString>;
659
+ /** The journal action that produced it, kept on this machine to pair it with its screenshot. */
660
+ actionId: z.ZodOptional<z.ZodString>;
661
+ /**
662
+ * What this check proves: the agent's `intent` (a sentence, or the id of a declared intent), else a
663
+ * sentence the engine built from the predicate in the failure voice — see `intentDerived`.
664
+ */
665
+ intent: z.ZodOptional<z.ZodString>;
666
+ /** True when `intent` was built from the predicate, not given by the agent. */
667
+ intentDerived: z.ZodOptional<z.ZodBoolean>;
668
+ /** The index of the `allOf` part that failed, so a title can name the one thing that did not happen. */
669
+ failedPart: z.ZodOptional<z.ZodNumber>;
670
+ /** What the page looked like when this check was decided. */
671
+ screenshot: z.ZodOptional<z.ZodObject<{
672
+ file: z.ZodString;
673
+ source: z.ZodNativeEnum<{
674
+ readonly BROWSER: "browser";
675
+ readonly RENDERED: "rendered";
676
+ }>;
677
+ width: z.ZodNumber;
678
+ height: z.ZodNumber;
679
+ sha256: z.ZodString;
680
+ }, "strip", z.ZodTypeAny, {
681
+ file: string;
682
+ source: "browser" | "rendered";
683
+ width: number;
684
+ height: number;
685
+ sha256: string;
686
+ }, {
687
+ file: string;
688
+ source: "browser" | "rendered";
689
+ width: number;
690
+ height: number;
691
+ sha256: string;
692
+ }>>;
454
693
  /**
455
694
  * The earlier check this one corrects, as `<runId>#<checkId>`.
456
695
  *
@@ -461,24 +700,50 @@ export declare const RunCheckSchema: z.ZodObject<{
461
700
  }, "strip", z.ZodTypeAny, {
462
701
  status: "yes" | "no" | "unknown" | "no-fault";
463
702
  predicate: string;
703
+ reason?: string | undefined;
464
704
  kind?: "signal" | "net" | "state" | "element" | "text" | "route" | "console" | "animation" | "settled" | "compare" | "allOf" | "anyOf" | "not" | undefined;
705
+ intent?: string | undefined;
706
+ expected?: string | undefined;
707
+ checkId?: string | undefined;
708
+ actionId?: string | undefined;
709
+ screenshot?: {
710
+ file: string;
711
+ source: "browser" | "rendered";
712
+ width: number;
713
+ height: number;
714
+ sha256: string;
715
+ } | undefined;
465
716
  evidence?: unknown;
466
717
  declaredBeforeActing?: boolean | undefined;
718
+ observed?: string | undefined;
467
719
  grade?: string | undefined;
468
720
  couldNotSee?: string[] | undefined;
469
- reason?: string | undefined;
470
- checkId?: string | undefined;
721
+ intentDerived?: boolean | undefined;
722
+ failedPart?: number | undefined;
471
723
  supersedes?: string | undefined;
472
724
  }, {
473
725
  predicate: string;
726
+ reason?: string | undefined;
474
727
  kind?: unknown;
728
+ intent?: string | undefined;
475
729
  status?: unknown;
730
+ expected?: string | undefined;
731
+ checkId?: string | undefined;
732
+ actionId?: string | undefined;
733
+ screenshot?: {
734
+ file: string;
735
+ source: "browser" | "rendered";
736
+ width: number;
737
+ height: number;
738
+ sha256: string;
739
+ } | undefined;
476
740
  evidence?: unknown;
477
741
  declaredBeforeActing?: boolean | undefined;
742
+ observed?: string | undefined;
478
743
  grade?: string | undefined;
479
744
  couldNotSee?: string[] | undefined;
480
- reason?: string | undefined;
481
- checkId?: string | undefined;
745
+ intentDerived?: boolean | undefined;
746
+ failedPart?: number | undefined;
482
747
  supersedes?: string | undefined;
483
748
  }>;
484
749
  export type RunCheck = z.infer<typeof RunCheckSchema>;
@@ -592,12 +857,12 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
592
857
  kind: z.ZodString;
593
858
  summary: z.ZodString;
594
859
  }, "strip", z.ZodTypeAny, {
595
- kind: string;
596
860
  at: number;
861
+ kind: string;
597
862
  summary: string;
598
863
  }, {
599
- kind: string;
600
864
  at: number;
865
+ kind: string;
601
866
  summary: string;
602
867
  }>, "many">>;
603
868
  }, "strip", z.ZodTypeAny, {
@@ -620,8 +885,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
620
885
  actual?: unknown;
621
886
  }[];
622
887
  timeline: {
623
- kind: string;
624
888
  at: number;
889
+ kind: string;
625
890
  summary: string;
626
891
  }[];
627
892
  }, {
@@ -644,8 +909,8 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
644
909
  actual?: unknown;
645
910
  }[] | undefined;
646
911
  timeline?: {
647
- kind: string;
648
912
  at: number;
913
+ kind: string;
649
914
  summary: string;
650
915
  }[] | undefined;
651
916
  }>;
@@ -786,6 +1051,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
786
1051
  readonly OTHER: "other";
787
1052
  }>;
788
1053
  commit: z.ZodOptional<z.ZodString>;
1054
+ /**
1055
+ * The git branch of the checkout that served the page. Several agents can drive one project at
1056
+ * once, each in its own worktree; the branch tells their runs apart. Optional and additive: an
1057
+ * older reader strips it and keeps the run.
1058
+ */
1059
+ branch: z.ZodOptional<z.ZodString>;
789
1060
  env: z.ZodOptional<z.ZodNativeEnum<{
790
1061
  readonly PREVIEW: "preview";
791
1062
  readonly CI: "ci";
@@ -796,12 +1067,14 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
796
1067
  name: string;
797
1068
  framework: "other" | "react" | "next" | "vite";
798
1069
  commit?: string | undefined;
1070
+ branch?: string | undefined;
799
1071
  env?: "ci" | "preview" | "local" | undefined;
800
1072
  previewUrl?: string | undefined;
801
1073
  }, {
802
1074
  name: string;
803
1075
  framework: "other" | "react" | "next" | "vite";
804
1076
  commit?: string | undefined;
1077
+ branch?: string | undefined;
805
1078
  env?: "ci" | "preview" | "local" | undefined;
806
1079
  previewUrl?: string | undefined;
807
1080
  }>;
@@ -822,6 +1095,18 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
822
1095
  id: string;
823
1096
  model?: string | undefined;
824
1097
  }>;
1098
+ /**
1099
+ * The episode that produced this run: `.reticle/episodes/<episodeId>.jsonl` on the machine that
1100
+ * ran it. Joins the run to every tool call the agent made, exactly. Absent when no episode was
1101
+ * written (the journal off, a CI run with no agent).
1102
+ */
1103
+ episodeId: z.ZodOptional<z.ZodString>;
1104
+ /**
1105
+ * The coding agent's own session id, as its MCP server announced it (Claude Code's
1106
+ * `CLAUDE_CODE_SESSION_ID`, the `session_id` its hooks receive). Joins the run to the agent
1107
+ * hooks' `agent-<session>.jsonl` exactly, even with two sessions of one agent in a project.
1108
+ */
1109
+ agentSession: z.ZodOptional<z.ZodString>;
825
1110
  trigger: z.ZodObject<{
826
1111
  kind: z.ZodNativeEnum<{
827
1112
  readonly EDIT: "edit";
@@ -959,24 +1244,61 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
959
1244
  error: z.ZodOptional<z.ZodString>;
960
1245
  /** The drift's reason kind, when the step drifted. */
961
1246
  drift: z.ZodOptional<z.ZodString>;
1247
+ /** What the page looked like when this step's outcome was decided. */
1248
+ screenshot: z.ZodOptional<z.ZodObject<{
1249
+ file: z.ZodString;
1250
+ source: z.ZodNativeEnum<{
1251
+ readonly BROWSER: "browser";
1252
+ readonly RENDERED: "rendered";
1253
+ }>;
1254
+ width: z.ZodNumber;
1255
+ height: z.ZodNumber;
1256
+ sha256: z.ZodString;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ file: string;
1259
+ source: "browser" | "rendered";
1260
+ width: number;
1261
+ height: number;
1262
+ sha256: string;
1263
+ }, {
1264
+ file: string;
1265
+ source: "browser" | "rendered";
1266
+ width: number;
1267
+ height: number;
1268
+ sha256: string;
1269
+ }>>;
962
1270
  }, "strip", z.ZodTypeAny, {
1271
+ anchor: string;
963
1272
  ok: boolean;
964
1273
  step: number;
965
- anchor: string;
966
1274
  drift?: string | undefined;
967
1275
  error?: string | undefined;
968
1276
  page?: string | undefined;
969
1277
  endPage?: string | undefined;
970
1278
  consequence?: string | undefined;
1279
+ screenshot?: {
1280
+ file: string;
1281
+ source: "browser" | "rendered";
1282
+ width: number;
1283
+ height: number;
1284
+ sha256: string;
1285
+ } | undefined;
971
1286
  }, {
1287
+ anchor: string;
972
1288
  ok: boolean;
973
1289
  step: number;
974
- anchor: string;
975
1290
  drift?: string | undefined;
976
1291
  error?: string | undefined;
977
1292
  page?: string | undefined;
978
1293
  endPage?: string | undefined;
979
1294
  consequence?: string | undefined;
1295
+ screenshot?: {
1296
+ file: string;
1297
+ source: "browser" | "rendered";
1298
+ width: number;
1299
+ height: number;
1300
+ sha256: string;
1301
+ } | undefined;
980
1302
  }>, "many">>;
981
1303
  /** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
982
1304
  recording: z.ZodOptional<z.ZodObject<{
@@ -992,9 +1314,9 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
992
1314
  /** True when the recording was too large to carry. */
993
1315
  recordingOmitted: z.ZodOptional<z.ZodBoolean>;
994
1316
  }, "strip", z.ZodTypeAny, {
1317
+ name: string;
995
1318
  status: "pass" | "fail" | "healed" | "skipped";
996
1319
  steps: number;
997
- name: string;
998
1320
  durationMs: number;
999
1321
  recording?: {
1000
1322
  steps: unknown[];
@@ -1010,20 +1332,27 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1010
1332
  evidenceRef?: string | undefined;
1011
1333
  failureReason?: string | undefined;
1012
1334
  stepResults?: {
1335
+ anchor: string;
1013
1336
  ok: boolean;
1014
1337
  step: number;
1015
- anchor: string;
1016
1338
  drift?: string | undefined;
1017
1339
  error?: string | undefined;
1018
1340
  page?: string | undefined;
1019
1341
  endPage?: string | undefined;
1020
1342
  consequence?: string | undefined;
1343
+ screenshot?: {
1344
+ file: string;
1345
+ source: "browser" | "rendered";
1346
+ width: number;
1347
+ height: number;
1348
+ sha256: string;
1349
+ } | undefined;
1021
1350
  }[] | undefined;
1022
1351
  recordingOmitted?: boolean | undefined;
1023
1352
  }, {
1353
+ name: string;
1024
1354
  status: "pass" | "fail" | "healed" | "skipped";
1025
1355
  steps: number;
1026
- name: string;
1027
1356
  durationMs: number;
1028
1357
  recording?: {
1029
1358
  steps: unknown[];
@@ -1039,14 +1368,21 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1039
1368
  evidenceRef?: string | undefined;
1040
1369
  failureReason?: string | undefined;
1041
1370
  stepResults?: {
1371
+ anchor: string;
1042
1372
  ok: boolean;
1043
1373
  step: number;
1044
- anchor: string;
1045
1374
  drift?: string | undefined;
1046
1375
  error?: string | undefined;
1047
1376
  page?: string | undefined;
1048
1377
  endPage?: string | undefined;
1049
1378
  consequence?: string | undefined;
1379
+ screenshot?: {
1380
+ file: string;
1381
+ source: "browser" | "rendered";
1382
+ width: number;
1383
+ height: number;
1384
+ sha256: string;
1385
+ } | undefined;
1050
1386
  }[] | undefined;
1051
1387
  recordingOmitted?: boolean | undefined;
1052
1388
  }>, "many">>;
@@ -1091,6 +1427,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1091
1427
  * recorded which, and those are different facts about the evidence.
1092
1428
  */
1093
1429
  declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
1430
+ /**
1431
+ * What the check required and what it saw, in the engine's words, when it said — "an element
1432
+ * matching {"testid":"pay"} in state 'enabled'" and "present, visible, disabled". Without them an
1433
+ * issue a CI run found had no Expected or Actual to show. Optional: older runs carry neither.
1434
+ */
1435
+ expected: z.ZodOptional<z.ZodString>;
1436
+ observed: z.ZodOptional<z.ZodString>;
1094
1437
  /**
1095
1438
  * What kind of evidence bought this answer.
1096
1439
  *
@@ -1116,6 +1459,40 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1116
1459
  reason: z.ZodOptional<z.ZodString>;
1117
1460
  /** This check's own name, so a later verdict can cite it. See revision.ts. */
1118
1461
  checkId: z.ZodOptional<z.ZodString>;
1462
+ /** The journal action that produced it, kept on this machine to pair it with its screenshot. */
1463
+ actionId: z.ZodOptional<z.ZodString>;
1464
+ /**
1465
+ * What this check proves: the agent's `intent` (a sentence, or the id of a declared intent), else a
1466
+ * sentence the engine built from the predicate in the failure voice — see `intentDerived`.
1467
+ */
1468
+ intent: z.ZodOptional<z.ZodString>;
1469
+ /** True when `intent` was built from the predicate, not given by the agent. */
1470
+ intentDerived: z.ZodOptional<z.ZodBoolean>;
1471
+ /** The index of the `allOf` part that failed, so a title can name the one thing that did not happen. */
1472
+ failedPart: z.ZodOptional<z.ZodNumber>;
1473
+ /** What the page looked like when this check was decided. */
1474
+ screenshot: z.ZodOptional<z.ZodObject<{
1475
+ file: z.ZodString;
1476
+ source: z.ZodNativeEnum<{
1477
+ readonly BROWSER: "browser";
1478
+ readonly RENDERED: "rendered";
1479
+ }>;
1480
+ width: z.ZodNumber;
1481
+ height: z.ZodNumber;
1482
+ sha256: z.ZodString;
1483
+ }, "strip", z.ZodTypeAny, {
1484
+ file: string;
1485
+ source: "browser" | "rendered";
1486
+ width: number;
1487
+ height: number;
1488
+ sha256: string;
1489
+ }, {
1490
+ file: string;
1491
+ source: "browser" | "rendered";
1492
+ width: number;
1493
+ height: number;
1494
+ sha256: string;
1495
+ }>>;
1119
1496
  /**
1120
1497
  * The earlier check this one corrects, as `<runId>#<checkId>`.
1121
1498
  *
@@ -1126,24 +1503,50 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1126
1503
  }, "strip", z.ZodTypeAny, {
1127
1504
  status: "yes" | "no" | "unknown" | "no-fault";
1128
1505
  predicate: string;
1506
+ reason?: string | undefined;
1129
1507
  kind?: "signal" | "net" | "state" | "element" | "text" | "route" | "console" | "animation" | "settled" | "compare" | "allOf" | "anyOf" | "not" | undefined;
1508
+ intent?: string | undefined;
1509
+ expected?: string | undefined;
1510
+ checkId?: string | undefined;
1511
+ actionId?: string | undefined;
1512
+ screenshot?: {
1513
+ file: string;
1514
+ source: "browser" | "rendered";
1515
+ width: number;
1516
+ height: number;
1517
+ sha256: string;
1518
+ } | undefined;
1130
1519
  evidence?: unknown;
1131
1520
  declaredBeforeActing?: boolean | undefined;
1521
+ observed?: string | undefined;
1132
1522
  grade?: string | undefined;
1133
1523
  couldNotSee?: string[] | undefined;
1134
- reason?: string | undefined;
1135
- checkId?: string | undefined;
1524
+ intentDerived?: boolean | undefined;
1525
+ failedPart?: number | undefined;
1136
1526
  supersedes?: string | undefined;
1137
1527
  }, {
1138
1528
  predicate: string;
1529
+ reason?: string | undefined;
1139
1530
  kind?: unknown;
1531
+ intent?: string | undefined;
1140
1532
  status?: unknown;
1533
+ expected?: string | undefined;
1534
+ checkId?: string | undefined;
1535
+ actionId?: string | undefined;
1536
+ screenshot?: {
1537
+ file: string;
1538
+ source: "browser" | "rendered";
1539
+ width: number;
1540
+ height: number;
1541
+ sha256: string;
1542
+ } | undefined;
1141
1543
  evidence?: unknown;
1142
1544
  declaredBeforeActing?: boolean | undefined;
1545
+ observed?: string | undefined;
1143
1546
  grade?: string | undefined;
1144
1547
  couldNotSee?: string[] | undefined;
1145
- reason?: string | undefined;
1146
- checkId?: string | undefined;
1548
+ intentDerived?: boolean | undefined;
1549
+ failedPart?: number | undefined;
1147
1550
  supersedes?: string | undefined;
1148
1551
  }>, "many">>;
1149
1552
  risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -1253,12 +1656,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1253
1656
  kind: z.ZodString;
1254
1657
  summary: z.ZodString;
1255
1658
  }, "strip", z.ZodTypeAny, {
1256
- kind: string;
1257
1659
  at: number;
1660
+ kind: string;
1258
1661
  summary: string;
1259
1662
  }, {
1260
- kind: string;
1261
1663
  at: number;
1664
+ kind: string;
1262
1665
  summary: string;
1263
1666
  }>, "many">>;
1264
1667
  }, "strip", z.ZodTypeAny, {
@@ -1281,8 +1684,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1281
1684
  actual?: unknown;
1282
1685
  }[];
1283
1686
  timeline: {
1284
- kind: string;
1285
1687
  at: number;
1688
+ kind: string;
1286
1689
  summary: string;
1287
1690
  }[];
1288
1691
  }, {
@@ -1305,8 +1708,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1305
1708
  actual?: unknown;
1306
1709
  }[] | undefined;
1307
1710
  timeline?: {
1308
- kind: string;
1309
1711
  at: number;
1712
+ kind: string;
1310
1713
  summary: string;
1311
1714
  }[] | undefined;
1312
1715
  }>;
@@ -1380,6 +1783,52 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1380
1783
  } | undefined;
1381
1784
  }[] | undefined;
1382
1785
  }>>;
1786
+ /** What the page looked like after each action, assert and replayed step. Absent on older runs. */
1787
+ screenshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
1788
+ file: z.ZodString;
1789
+ source: z.ZodNativeEnum<{
1790
+ readonly BROWSER: "browser";
1791
+ readonly RENDERED: "rendered";
1792
+ }>;
1793
+ width: z.ZodNumber;
1794
+ height: z.ZodNumber;
1795
+ sha256: z.ZodString;
1796
+ } & {
1797
+ seq: z.ZodNumber;
1798
+ tool: z.ZodString;
1799
+ /** The flow step it belongs to, as `<flow>#<step>`, when it was taken during a replay. */
1800
+ step: z.ZodOptional<z.ZodString>;
1801
+ /** Taken for a call that produced a verdict — what lets the run pair it with its check. */
1802
+ verdict: z.ZodOptional<z.ZodBoolean>;
1803
+ /** The check this picture is of (see `RunCheck.checkId`), when it could be paired with one. */
1804
+ checkId: z.ZodOptional<z.ZodString>;
1805
+ /** The journal action it was taken for: how a run pairs it with its check (`RunCheck.actionId`). */
1806
+ actionId: z.ZodOptional<z.ZodString>;
1807
+ }, "strip", z.ZodTypeAny, {
1808
+ file: string;
1809
+ source: "browser" | "rendered";
1810
+ width: number;
1811
+ height: number;
1812
+ sha256: string;
1813
+ seq: number;
1814
+ tool: string;
1815
+ step?: string | undefined;
1816
+ verdict?: boolean | undefined;
1817
+ checkId?: string | undefined;
1818
+ actionId?: string | undefined;
1819
+ }, {
1820
+ file: string;
1821
+ source: "browser" | "rendered";
1822
+ width: number;
1823
+ height: number;
1824
+ sha256: string;
1825
+ seq: number;
1826
+ tool: string;
1827
+ step?: string | undefined;
1828
+ verdict?: boolean | undefined;
1829
+ checkId?: string | undefined;
1830
+ actionId?: string | undefined;
1831
+ }>, "many">>;
1383
1832
  verdict: z.ZodObject<{
1384
1833
  status: z.ZodNativeEnum<{
1385
1834
  readonly PASS: "pass";
@@ -1447,11 +1896,105 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1447
1896
  alg: string;
1448
1897
  signedAt: number;
1449
1898
  }>>;
1899
+ /**
1900
+ * On a Harness run: each goal the session's coding agent also judged, and how the two compare.
1901
+ * Optional and additive; an older platform strips it and keeps the body.
1902
+ */
1903
+ disparity: z.ZodOptional<z.ZodArray<z.ZodObject<{
1904
+ goal: z.ZodString;
1905
+ kind: z.ZodNativeEnum<{
1906
+ readonly FINDABLE: "findable";
1907
+ readonly DISCOVERABILITY: "discoverability";
1908
+ readonly AGENT_ASSUMPTION: "agent_assumption";
1909
+ readonly DEFECT: "defect";
1910
+ }>;
1911
+ agent: z.ZodObject<{
1912
+ verified: z.ZodNativeEnum<{
1913
+ readonly YES: "yes";
1914
+ readonly NO: "no";
1915
+ readonly UNKNOWN: "unknown";
1916
+ readonly NO_FAULT: "no-fault";
1917
+ }>;
1918
+ claim: z.ZodString;
1919
+ }, "strip", z.ZodTypeAny, {
1920
+ verified: "yes" | "no" | "unknown" | "no-fault";
1921
+ claim: string;
1922
+ }, {
1923
+ verified: "yes" | "no" | "unknown" | "no-fault";
1924
+ claim: string;
1925
+ }>;
1926
+ harness: z.ZodObject<{
1927
+ verified: z.ZodNativeEnum<{
1928
+ readonly YES: "yes";
1929
+ readonly NO: "no";
1930
+ readonly UNKNOWN: "unknown";
1931
+ readonly NO_FAULT: "no-fault";
1932
+ }>;
1933
+ found: z.ZodBoolean;
1934
+ searched: z.ZodArray<z.ZodString, "many">;
1935
+ gaveUpAt: z.ZodOptional<z.ZodString>;
1936
+ }, "strip", z.ZodTypeAny, {
1937
+ verified: "yes" | "no" | "unknown" | "no-fault";
1938
+ found: boolean;
1939
+ searched: string[];
1940
+ gaveUpAt?: string | undefined;
1941
+ }, {
1942
+ verified: "yes" | "no" | "unknown" | "no-fault";
1943
+ found: boolean;
1944
+ searched: string[];
1945
+ gaveUpAt?: string | undefined;
1946
+ }>;
1947
+ }, "strip", z.ZodTypeAny, {
1948
+ kind: "findable" | "discoverability" | "agent_assumption" | "defect";
1949
+ goal: string;
1950
+ agent: {
1951
+ verified: "yes" | "no" | "unknown" | "no-fault";
1952
+ claim: string;
1953
+ };
1954
+ harness: {
1955
+ verified: "yes" | "no" | "unknown" | "no-fault";
1956
+ found: boolean;
1957
+ searched: string[];
1958
+ gaveUpAt?: string | undefined;
1959
+ };
1960
+ }, {
1961
+ kind: "findable" | "discoverability" | "agent_assumption" | "defect";
1962
+ goal: string;
1963
+ agent: {
1964
+ verified: "yes" | "no" | "unknown" | "no-fault";
1965
+ claim: string;
1966
+ };
1967
+ harness: {
1968
+ verified: "yes" | "no" | "unknown" | "no-fault";
1969
+ found: boolean;
1970
+ searched: string[];
1971
+ gaveUpAt?: string | undefined;
1972
+ };
1973
+ }>, "many">>;
1974
+ /**
1975
+ * What the coding agent itself said the session showed (`reticle_session { end, claim }`), kept
1976
+ * beside the graded `verdict` so claimed-vs-graded can be compared. Never read as the verdict.
1977
+ */
1978
+ agentClaim: z.ZodOptional<z.ZodNativeEnum<{
1979
+ readonly PASS: "pass";
1980
+ readonly FAIL: "fail";
1981
+ readonly PARTIAL: "partial";
1982
+ /**
1983
+ * Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
1984
+ * to pass and nothing to fail.
1985
+ *
1986
+ * This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
1987
+ * successfully are different facts, and flattening them into one word is how a green light comes
1988
+ * to mean "we did not look". It matches how a single action is already judged, where "could not
1989
+ * tell" has always been its own answer.
1990
+ */
1991
+ readonly UNKNOWN: "unknown";
1992
+ }>>;
1450
1993
  }, "strip", z.ZodTypeAny, {
1451
1994
  flows: {
1995
+ name: string;
1452
1996
  status: "pass" | "fail" | "healed" | "skipped";
1453
1997
  steps: number;
1454
- name: string;
1455
1998
  durationMs: number;
1456
1999
  recording?: {
1457
2000
  steps: unknown[];
@@ -1467,17 +2010,37 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1467
2010
  evidenceRef?: string | undefined;
1468
2011
  failureReason?: string | undefined;
1469
2012
  stepResults?: {
2013
+ anchor: string;
1470
2014
  ok: boolean;
1471
2015
  step: number;
1472
- anchor: string;
1473
2016
  drift?: string | undefined;
1474
2017
  error?: string | undefined;
1475
2018
  page?: string | undefined;
1476
2019
  endPage?: string | undefined;
1477
2020
  consequence?: string | undefined;
2021
+ screenshot?: {
2022
+ file: string;
2023
+ source: "browser" | "rendered";
2024
+ width: number;
2025
+ height: number;
2026
+ sha256: string;
2027
+ } | undefined;
1478
2028
  }[] | undefined;
1479
2029
  recordingOmitted?: boolean | undefined;
1480
2030
  }[];
2031
+ agent: {
2032
+ kind: "coding-agent" | "oem-pipeline" | "human";
2033
+ id: string;
2034
+ model?: string | undefined;
2035
+ };
2036
+ verdict: {
2037
+ status: "pass" | "fail" | "unknown" | "partial";
2038
+ reasons: string[];
2039
+ confidence: "low" | "medium" | "high";
2040
+ blockingRisks: number;
2041
+ checkId?: string | undefined;
2042
+ supersedes?: string | undefined;
2043
+ };
1481
2044
  durationMs: number;
1482
2045
  evidence: {
1483
2046
  consoleErrors: {
@@ -1499,12 +2062,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1499
2062
  actual?: unknown;
1500
2063
  }[];
1501
2064
  timeline: {
1502
- kind: string;
1503
2065
  at: number;
2066
+ kind: string;
1504
2067
  summary: string;
1505
2068
  }[];
1506
2069
  };
1507
- schemaVersion: 1 | 2 | 3;
2070
+ schemaVersion: 2 | 1 | 3;
1508
2071
  runId: string & z.BRAND<"RunId">;
1509
2072
  createdAt: number;
1510
2073
  profile: "dev" | "prod-preview";
@@ -1512,14 +2075,10 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1512
2075
  name: string;
1513
2076
  framework: "other" | "react" | "next" | "vite";
1514
2077
  commit?: string | undefined;
2078
+ branch?: string | undefined;
1515
2079
  env?: "ci" | "preview" | "local" | undefined;
1516
2080
  previewUrl?: string | undefined;
1517
2081
  };
1518
- agent: {
1519
- kind: "coding-agent" | "oem-pipeline" | "human";
1520
- id: string;
1521
- model?: string | undefined;
1522
- };
1523
2082
  trigger: {
1524
2083
  kind: "manual" | "edit" | "ci" | "oem";
1525
2084
  diffRef?: string | undefined;
@@ -1533,13 +2092,26 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1533
2092
  checks: {
1534
2093
  status: "yes" | "no" | "unknown" | "no-fault";
1535
2094
  predicate: string;
2095
+ reason?: string | undefined;
1536
2096
  kind?: "signal" | "net" | "state" | "element" | "text" | "route" | "console" | "animation" | "settled" | "compare" | "allOf" | "anyOf" | "not" | undefined;
2097
+ intent?: string | undefined;
2098
+ expected?: string | undefined;
2099
+ checkId?: string | undefined;
2100
+ actionId?: string | undefined;
2101
+ screenshot?: {
2102
+ file: string;
2103
+ source: "browser" | "rendered";
2104
+ width: number;
2105
+ height: number;
2106
+ sha256: string;
2107
+ } | undefined;
1537
2108
  evidence?: unknown;
1538
2109
  declaredBeforeActing?: boolean | undefined;
2110
+ observed?: string | undefined;
1539
2111
  grade?: string | undefined;
1540
2112
  couldNotSee?: string[] | undefined;
1541
- reason?: string | undefined;
1542
- checkId?: string | undefined;
2113
+ intentDerived?: boolean | undefined;
2114
+ failedPart?: number | undefined;
1543
2115
  supersedes?: string | undefined;
1544
2116
  }[];
1545
2117
  risks: {
@@ -1553,14 +2125,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1553
2125
  line?: number | undefined;
1554
2126
  } | undefined;
1555
2127
  }[];
1556
- verdict: {
1557
- status: "pass" | "fail" | "unknown" | "partial";
1558
- reasons: string[];
1559
- confidence: "low" | "medium" | "high";
1560
- blockingRisks: number;
1561
- checkId?: string | undefined;
1562
- supersedes?: string | undefined;
1563
- };
2128
+ episodeId?: string | undefined;
2129
+ agentSession?: string | undefined;
1564
2130
  editEpoch?: number | undefined;
1565
2131
  subject?: {
1566
2132
  surface: string;
@@ -1584,12 +2150,53 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1584
2150
  } | undefined;
1585
2151
  }[];
1586
2152
  } | undefined;
2153
+ screenshots?: {
2154
+ file: string;
2155
+ source: "browser" | "rendered";
2156
+ width: number;
2157
+ height: number;
2158
+ sha256: string;
2159
+ seq: number;
2160
+ tool: string;
2161
+ step?: string | undefined;
2162
+ verdict?: boolean | undefined;
2163
+ checkId?: string | undefined;
2164
+ actionId?: string | undefined;
2165
+ }[] | undefined;
1587
2166
  signature?: {
1588
2167
  value: string;
1589
2168
  alg: string;
1590
2169
  signedAt: number;
1591
2170
  } | undefined;
2171
+ disparity?: {
2172
+ kind: "findable" | "discoverability" | "agent_assumption" | "defect";
2173
+ goal: string;
2174
+ agent: {
2175
+ verified: "yes" | "no" | "unknown" | "no-fault";
2176
+ claim: string;
2177
+ };
2178
+ harness: {
2179
+ verified: "yes" | "no" | "unknown" | "no-fault";
2180
+ found: boolean;
2181
+ searched: string[];
2182
+ gaveUpAt?: string | undefined;
2183
+ };
2184
+ }[] | undefined;
2185
+ agentClaim?: "pass" | "fail" | "unknown" | "partial" | undefined;
1592
2186
  }, {
2187
+ agent: {
2188
+ kind: "coding-agent" | "oem-pipeline" | "human";
2189
+ id: string;
2190
+ model?: string | undefined;
2191
+ };
2192
+ verdict: {
2193
+ status: "pass" | "fail" | "unknown" | "partial";
2194
+ confidence: "low" | "medium" | "high";
2195
+ checkId?: string | undefined;
2196
+ supersedes?: string | undefined;
2197
+ reasons?: string[] | undefined;
2198
+ blockingRisks?: number | undefined;
2199
+ };
1593
2200
  durationMs: number;
1594
2201
  evidence: {
1595
2202
  consoleErrors?: {
@@ -1611,12 +2218,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1611
2218
  actual?: unknown;
1612
2219
  }[] | undefined;
1613
2220
  timeline?: {
1614
- kind: string;
1615
2221
  at: number;
2222
+ kind: string;
1616
2223
  summary: string;
1617
2224
  }[] | undefined;
1618
2225
  };
1619
- schemaVersion: 1 | 2 | 3;
2226
+ schemaVersion: 2 | 1 | 3;
1620
2227
  runId: string;
1621
2228
  createdAt: number;
1622
2229
  profile: "dev" | "prod-preview";
@@ -1624,31 +2231,19 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1624
2231
  name: string;
1625
2232
  framework: "other" | "react" | "next" | "vite";
1626
2233
  commit?: string | undefined;
2234
+ branch?: string | undefined;
1627
2235
  env?: "ci" | "preview" | "local" | undefined;
1628
2236
  previewUrl?: string | undefined;
1629
2237
  };
1630
- agent: {
1631
- kind: "coding-agent" | "oem-pipeline" | "human";
1632
- id: string;
1633
- model?: string | undefined;
1634
- };
1635
2238
  trigger: {
1636
2239
  kind: "manual" | "edit" | "ci" | "oem";
1637
2240
  diffRef?: string | undefined;
1638
2241
  note?: string | undefined;
1639
2242
  };
1640
- verdict: {
1641
- status: "pass" | "fail" | "unknown" | "partial";
1642
- confidence: "low" | "medium" | "high";
1643
- checkId?: string | undefined;
1644
- supersedes?: string | undefined;
1645
- reasons?: string[] | undefined;
1646
- blockingRisks?: number | undefined;
1647
- };
1648
2243
  flows?: {
2244
+ name: string;
1649
2245
  status: "pass" | "fail" | "healed" | "skipped";
1650
2246
  steps: number;
1651
- name: string;
1652
2247
  durationMs: number;
1653
2248
  recording?: {
1654
2249
  steps: unknown[];
@@ -1664,17 +2259,26 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1664
2259
  evidenceRef?: string | undefined;
1665
2260
  failureReason?: string | undefined;
1666
2261
  stepResults?: {
2262
+ anchor: string;
1667
2263
  ok: boolean;
1668
2264
  step: number;
1669
- anchor: string;
1670
2265
  drift?: string | undefined;
1671
2266
  error?: string | undefined;
1672
2267
  page?: string | undefined;
1673
2268
  endPage?: string | undefined;
1674
2269
  consequence?: string | undefined;
2270
+ screenshot?: {
2271
+ file: string;
2272
+ source: "browser" | "rendered";
2273
+ width: number;
2274
+ height: number;
2275
+ sha256: string;
2276
+ } | undefined;
1675
2277
  }[] | undefined;
1676
2278
  recordingOmitted?: boolean | undefined;
1677
2279
  }[] | undefined;
2280
+ episodeId?: string | undefined;
2281
+ agentSession?: string | undefined;
1678
2282
  editEpoch?: number | undefined;
1679
2283
  subject?: {
1680
2284
  surface: string;
@@ -1691,14 +2295,27 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1691
2295
  }[] | undefined;
1692
2296
  checks?: {
1693
2297
  predicate: string;
2298
+ reason?: string | undefined;
1694
2299
  kind?: unknown;
2300
+ intent?: string | undefined;
1695
2301
  status?: unknown;
2302
+ expected?: string | undefined;
2303
+ checkId?: string | undefined;
2304
+ actionId?: string | undefined;
2305
+ screenshot?: {
2306
+ file: string;
2307
+ source: "browser" | "rendered";
2308
+ width: number;
2309
+ height: number;
2310
+ sha256: string;
2311
+ } | undefined;
1696
2312
  evidence?: unknown;
1697
2313
  declaredBeforeActing?: boolean | undefined;
2314
+ observed?: string | undefined;
1698
2315
  grade?: string | undefined;
1699
2316
  couldNotSee?: string[] | undefined;
1700
- reason?: string | undefined;
1701
- checkId?: string | undefined;
2317
+ intentDerived?: boolean | undefined;
2318
+ failedPart?: number | undefined;
1702
2319
  supersedes?: string | undefined;
1703
2320
  }[] | undefined;
1704
2321
  risks?: {
@@ -1726,11 +2343,39 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
1726
2343
  } | undefined;
1727
2344
  }[] | undefined;
1728
2345
  } | undefined;
2346
+ screenshots?: {
2347
+ file: string;
2348
+ source: "browser" | "rendered";
2349
+ width: number;
2350
+ height: number;
2351
+ sha256: string;
2352
+ seq: number;
2353
+ tool: string;
2354
+ step?: string | undefined;
2355
+ verdict?: boolean | undefined;
2356
+ checkId?: string | undefined;
2357
+ actionId?: string | undefined;
2358
+ }[] | undefined;
1729
2359
  signature?: {
1730
2360
  value: string;
1731
2361
  alg: string;
1732
2362
  signedAt: number;
1733
2363
  } | undefined;
2364
+ disparity?: {
2365
+ kind: "findable" | "discoverability" | "agent_assumption" | "defect";
2366
+ goal: string;
2367
+ agent: {
2368
+ verified: "yes" | "no" | "unknown" | "no-fault";
2369
+ claim: string;
2370
+ };
2371
+ harness: {
2372
+ verified: "yes" | "no" | "unknown" | "no-fault";
2373
+ found: boolean;
2374
+ searched: string[];
2375
+ gaveUpAt?: string | undefined;
2376
+ };
2377
+ }[] | undefined;
2378
+ agentClaim?: "pass" | "fail" | "unknown" | "partial" | undefined;
1734
2379
  }>;
1735
2380
  export type ReticleVerificationRun = z.infer<typeof ReticleVerificationRunSchema>;
1736
2381
  export type VerificationEvidence = z.infer<typeof VerificationEvidenceSchema>;