@reticlehq/core 3.6.0 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/artifacts-entry.d.ts +2 -0
- package/dist/artifacts/artifacts-entry.js +2 -0
- package/dist/artifacts/drive-script.d.ts +158 -52
- package/dist/artifacts/drive-script.js +24 -1
- package/dist/artifacts/flow-constants.d.ts +18 -0
- package/dist/artifacts/flow-constants.js +20 -0
- package/dist/artifacts/flow-results.d.ts +450 -0
- package/dist/artifacts/flow-results.js +1 -0
- package/dist/artifacts/flow-types.d.ts +25 -437
- package/dist/artifacts/flow-types.js +5 -2
- package/dist/artifacts/harness-credits.d.ts +39 -0
- package/dist/artifacts/harness-credits.js +69 -0
- package/dist/artifacts/harness-map.d.ts +98 -0
- package/dist/artifacts/harness-map.js +36 -0
- package/dist/artifacts/impact.d.ts +354 -145
- package/dist/artifacts/impact.js +66 -48
- package/dist/artifacts/journal.d.ts +56 -5
- package/dist/artifacts/journal.js +26 -0
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/hooks/hook-events.d.ts +4 -4
- package/dist/hud-entry.d.ts +1 -0
- package/dist/hud-entry.js +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/onboarding.d.ts +8 -0
- package/dist/onboarding.js +6 -0
- package/dist/realm/registry.js +19 -1
- package/dist/schema/command-message.json +30 -0
- package/dist/schema/command-name.json +3 -1
- package/dist/schema/event-payloads.json +40 -2
- package/dist/schema/reticle-message.json +30 -0
- package/dist/telemetry-bug.d.ts +169 -0
- package/dist/telemetry-bug.js +123 -0
- package/dist/telemetry-entry.d.ts +1 -0
- package/dist/telemetry-entry.js +1 -0
- package/dist/telemetry-feedback.d.ts +2 -2
- package/dist/telemetry-refusal.d.ts +2 -2
- package/dist/telemetry-session.d.ts +74 -0
- package/dist/telemetry-session.js +54 -0
- package/dist/telemetry-signals.d.ts +339 -0
- package/dist/telemetry-signals.js +138 -0
- package/dist/telemetry.d.ts +300 -254
- package/dist/telemetry.js +40 -115
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +6 -0
- package/dist/verdict/findings.js +9 -0
- package/dist/verdict/instrumentation-coverage.d.ts +115 -0
- package/dist/verdict/instrumentation-coverage.js +226 -0
- package/dist/verdict/instrumentation-gap.js +1 -1
- package/dist/verdict/intent.d.ts +19 -5
- package/dist/verdict/intent.js +13 -1
- package/dist/verdict/predicate-tree.d.ts +15 -0
- package/dist/verdict/predicate-tree.js +21 -0
- package/dist/verdict/predicate.d.ts +14 -0
- package/dist/verdict/predicate.js +87 -3
- package/dist/verdict/security.d.ts +25 -0
- package/dist/verdict/security.js +82 -0
- package/dist/verdict/verification-run.d.ts +620 -32
- package/dist/verdict/verification-run.js +82 -0
- package/dist/wire/constants/constants.d.ts +15 -16
- package/dist/wire/constants/constants.js +16 -17
- package/dist/wire/constants/hud-controls.js +17 -5
- package/dist/wire/constants/hud-use.d.ts +29 -4
- package/dist/wire/constants/hud-use.js +26 -4
- package/dist/wire/constants/mcp-wire.d.ts +10 -0
- package/dist/wire/constants/mcp-wire.js +10 -0
- package/dist/wire/constants/reticle-chrome.d.ts +19 -0
- package/dist/wire/constants/reticle-chrome.js +19 -0
- package/dist/wire/constants/session-constants.d.ts +15 -2
- package/dist/wire/constants/session-constants.js +15 -2
- package/dist/wire/desktop-contract.d.ts +8 -0
- package/dist/wire/desktop-contract.js +11 -0
- package/dist/wire/event-payloads.d.ts +56 -4
- package/dist/wire/event-payloads.js +17 -0
- package/dist/wire/messages.d.ts +105 -32
- package/dist/wire/messages.js +9 -1
- package/dist/wire/platform-link.d.ts +77 -0
- package/dist/wire/platform-link.js +45 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +19 -6
- package/dist/wire/types.js +5 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +1 -1
- package/dist/words/upgrade.js +1 -1
- package/dist/words/writing-rule.d.ts +14 -0
- package/dist/words/writing-rule.js +17 -0
- package/package.json +1 -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,100 @@ 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
|
+
/** One step's screenshot as a run artifact records it. `file` is relative to the run's directory. */
|
|
243
|
+
export declare const StepScreenshotSchema: z.ZodObject<{
|
|
244
|
+
file: z.ZodString;
|
|
245
|
+
source: z.ZodNativeEnum<{
|
|
246
|
+
readonly BROWSER: "browser";
|
|
247
|
+
readonly RENDERED: "rendered";
|
|
248
|
+
}>;
|
|
249
|
+
width: z.ZodNumber;
|
|
250
|
+
height: z.ZodNumber;
|
|
251
|
+
sha256: z.ZodString;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
file: string;
|
|
254
|
+
source: "browser" | "rendered";
|
|
255
|
+
width: number;
|
|
256
|
+
height: number;
|
|
257
|
+
sha256: string;
|
|
258
|
+
}, {
|
|
259
|
+
file: string;
|
|
260
|
+
source: "browser" | "rendered";
|
|
261
|
+
width: number;
|
|
262
|
+
height: number;
|
|
263
|
+
sha256: string;
|
|
264
|
+
}>;
|
|
265
|
+
export type StepScreenshot = z.infer<typeof StepScreenshotSchema>;
|
|
266
|
+
/** Every screenshot a run took, in order — including the actions that produced no verdict. */
|
|
267
|
+
export declare const RunScreenshotSchema: z.ZodObject<{
|
|
268
|
+
file: z.ZodString;
|
|
269
|
+
source: z.ZodNativeEnum<{
|
|
270
|
+
readonly BROWSER: "browser";
|
|
271
|
+
readonly RENDERED: "rendered";
|
|
272
|
+
}>;
|
|
273
|
+
width: z.ZodNumber;
|
|
274
|
+
height: z.ZodNumber;
|
|
275
|
+
sha256: z.ZodString;
|
|
276
|
+
} & {
|
|
277
|
+
seq: z.ZodNumber;
|
|
278
|
+
tool: z.ZodString;
|
|
279
|
+
/** The flow step it belongs to, as `<flow>#<step>`, when it was taken during a replay. */
|
|
280
|
+
step: z.ZodOptional<z.ZodString>;
|
|
281
|
+
/** Taken for a call that produced a verdict — what lets the run pair it with its check. */
|
|
282
|
+
verdict: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
+
/** The check this picture is of (see `RunCheck.checkId`), when it could be paired with one. */
|
|
284
|
+
checkId: z.ZodOptional<z.ZodString>;
|
|
285
|
+
/** The journal action it was taken for: how a run pairs it with its check (`RunCheck.actionId`). */
|
|
286
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
file: string;
|
|
289
|
+
source: "browser" | "rendered";
|
|
290
|
+
width: number;
|
|
291
|
+
height: number;
|
|
292
|
+
sha256: string;
|
|
293
|
+
seq: number;
|
|
294
|
+
tool: string;
|
|
295
|
+
step?: string | undefined;
|
|
296
|
+
verdict?: boolean | undefined;
|
|
297
|
+
checkId?: string | undefined;
|
|
298
|
+
actionId?: string | undefined;
|
|
299
|
+
}, {
|
|
300
|
+
file: string;
|
|
301
|
+
source: "browser" | "rendered";
|
|
302
|
+
width: number;
|
|
303
|
+
height: number;
|
|
304
|
+
sha256: string;
|
|
305
|
+
seq: number;
|
|
306
|
+
tool: string;
|
|
307
|
+
step?: string | undefined;
|
|
308
|
+
verdict?: boolean | undefined;
|
|
309
|
+
checkId?: string | undefined;
|
|
310
|
+
actionId?: string | undefined;
|
|
311
|
+
}>;
|
|
312
|
+
export type RunScreenshot = z.infer<typeof RunScreenshotSchema>;
|
|
208
313
|
/** One step of a replayed flow, as synced: its outcome and the pages it ran on and led to. */
|
|
209
314
|
export declare const RunStepResultSchema: z.ZodObject<{
|
|
210
315
|
step: z.ZodNumber;
|
|
@@ -216,6 +321,29 @@ export declare const RunStepResultSchema: z.ZodObject<{
|
|
|
216
321
|
error: z.ZodOptional<z.ZodString>;
|
|
217
322
|
/** The drift's reason kind, when the step drifted. */
|
|
218
323
|
drift: z.ZodOptional<z.ZodString>;
|
|
324
|
+
/** What the page looked like when this step's outcome was decided. */
|
|
325
|
+
screenshot: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
file: z.ZodString;
|
|
327
|
+
source: z.ZodNativeEnum<{
|
|
328
|
+
readonly BROWSER: "browser";
|
|
329
|
+
readonly RENDERED: "rendered";
|
|
330
|
+
}>;
|
|
331
|
+
width: z.ZodNumber;
|
|
332
|
+
height: z.ZodNumber;
|
|
333
|
+
sha256: z.ZodString;
|
|
334
|
+
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
file: string;
|
|
336
|
+
source: "browser" | "rendered";
|
|
337
|
+
width: number;
|
|
338
|
+
height: number;
|
|
339
|
+
sha256: string;
|
|
340
|
+
}, {
|
|
341
|
+
file: string;
|
|
342
|
+
source: "browser" | "rendered";
|
|
343
|
+
width: number;
|
|
344
|
+
height: number;
|
|
345
|
+
sha256: string;
|
|
346
|
+
}>>;
|
|
219
347
|
}, "strip", z.ZodTypeAny, {
|
|
220
348
|
ok: boolean;
|
|
221
349
|
step: number;
|
|
@@ -225,6 +353,13 @@ export declare const RunStepResultSchema: z.ZodObject<{
|
|
|
225
353
|
page?: string | undefined;
|
|
226
354
|
endPage?: string | undefined;
|
|
227
355
|
consequence?: string | undefined;
|
|
356
|
+
screenshot?: {
|
|
357
|
+
file: string;
|
|
358
|
+
source: "browser" | "rendered";
|
|
359
|
+
width: number;
|
|
360
|
+
height: number;
|
|
361
|
+
sha256: string;
|
|
362
|
+
} | undefined;
|
|
228
363
|
}, {
|
|
229
364
|
ok: boolean;
|
|
230
365
|
step: number;
|
|
@@ -234,6 +369,13 @@ export declare const RunStepResultSchema: z.ZodObject<{
|
|
|
234
369
|
page?: string | undefined;
|
|
235
370
|
endPage?: string | undefined;
|
|
236
371
|
consequence?: string | undefined;
|
|
372
|
+
screenshot?: {
|
|
373
|
+
file: string;
|
|
374
|
+
source: "browser" | "rendered";
|
|
375
|
+
width: number;
|
|
376
|
+
height: number;
|
|
377
|
+
sha256: string;
|
|
378
|
+
} | undefined;
|
|
237
379
|
}>;
|
|
238
380
|
export type RunStepResult = z.infer<typeof RunStepResultSchema>;
|
|
239
381
|
/**
|
|
@@ -292,6 +434,29 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
292
434
|
error: z.ZodOptional<z.ZodString>;
|
|
293
435
|
/** The drift's reason kind, when the step drifted. */
|
|
294
436
|
drift: z.ZodOptional<z.ZodString>;
|
|
437
|
+
/** What the page looked like when this step's outcome was decided. */
|
|
438
|
+
screenshot: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
file: z.ZodString;
|
|
440
|
+
source: z.ZodNativeEnum<{
|
|
441
|
+
readonly BROWSER: "browser";
|
|
442
|
+
readonly RENDERED: "rendered";
|
|
443
|
+
}>;
|
|
444
|
+
width: z.ZodNumber;
|
|
445
|
+
height: z.ZodNumber;
|
|
446
|
+
sha256: z.ZodString;
|
|
447
|
+
}, "strip", z.ZodTypeAny, {
|
|
448
|
+
file: string;
|
|
449
|
+
source: "browser" | "rendered";
|
|
450
|
+
width: number;
|
|
451
|
+
height: number;
|
|
452
|
+
sha256: string;
|
|
453
|
+
}, {
|
|
454
|
+
file: string;
|
|
455
|
+
source: "browser" | "rendered";
|
|
456
|
+
width: number;
|
|
457
|
+
height: number;
|
|
458
|
+
sha256: string;
|
|
459
|
+
}>>;
|
|
295
460
|
}, "strip", z.ZodTypeAny, {
|
|
296
461
|
ok: boolean;
|
|
297
462
|
step: number;
|
|
@@ -301,6 +466,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
301
466
|
page?: string | undefined;
|
|
302
467
|
endPage?: string | undefined;
|
|
303
468
|
consequence?: string | undefined;
|
|
469
|
+
screenshot?: {
|
|
470
|
+
file: string;
|
|
471
|
+
source: "browser" | "rendered";
|
|
472
|
+
width: number;
|
|
473
|
+
height: number;
|
|
474
|
+
sha256: string;
|
|
475
|
+
} | undefined;
|
|
304
476
|
}, {
|
|
305
477
|
ok: boolean;
|
|
306
478
|
step: number;
|
|
@@ -310,6 +482,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
310
482
|
page?: string | undefined;
|
|
311
483
|
endPage?: string | undefined;
|
|
312
484
|
consequence?: string | undefined;
|
|
485
|
+
screenshot?: {
|
|
486
|
+
file: string;
|
|
487
|
+
source: "browser" | "rendered";
|
|
488
|
+
width: number;
|
|
489
|
+
height: number;
|
|
490
|
+
sha256: string;
|
|
491
|
+
} | undefined;
|
|
313
492
|
}>, "many">>;
|
|
314
493
|
/** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
|
|
315
494
|
recording: z.ZodOptional<z.ZodObject<{
|
|
@@ -351,6 +530,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
351
530
|
page?: string | undefined;
|
|
352
531
|
endPage?: string | undefined;
|
|
353
532
|
consequence?: string | undefined;
|
|
533
|
+
screenshot?: {
|
|
534
|
+
file: string;
|
|
535
|
+
source: "browser" | "rendered";
|
|
536
|
+
width: number;
|
|
537
|
+
height: number;
|
|
538
|
+
sha256: string;
|
|
539
|
+
} | undefined;
|
|
354
540
|
}[] | undefined;
|
|
355
541
|
recordingOmitted?: boolean | undefined;
|
|
356
542
|
}, {
|
|
@@ -380,6 +566,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
380
566
|
page?: string | undefined;
|
|
381
567
|
endPage?: string | undefined;
|
|
382
568
|
consequence?: string | undefined;
|
|
569
|
+
screenshot?: {
|
|
570
|
+
file: string;
|
|
571
|
+
source: "browser" | "rendered";
|
|
572
|
+
width: number;
|
|
573
|
+
height: number;
|
|
574
|
+
sha256: string;
|
|
575
|
+
} | undefined;
|
|
383
576
|
}[] | undefined;
|
|
384
577
|
recordingOmitted?: boolean | undefined;
|
|
385
578
|
}>;
|
|
@@ -426,6 +619,13 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
426
619
|
* recorded which, and those are different facts about the evidence.
|
|
427
620
|
*/
|
|
428
621
|
declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
+
/**
|
|
623
|
+
* What the check required and what it saw, in the engine's words, when it said — "an element
|
|
624
|
+
* matching {"testid":"pay"} in state 'enabled'" and "present, visible, disabled". Without them an
|
|
625
|
+
* issue a CI run found had no Expected or Actual to show. Optional: older runs carry neither.
|
|
626
|
+
*/
|
|
627
|
+
expected: z.ZodOptional<z.ZodString>;
|
|
628
|
+
observed: z.ZodOptional<z.ZodString>;
|
|
429
629
|
/**
|
|
430
630
|
* What kind of evidence bought this answer.
|
|
431
631
|
*
|
|
@@ -451,6 +651,33 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
451
651
|
reason: z.ZodOptional<z.ZodString>;
|
|
452
652
|
/** This check's own name, so a later verdict can cite it. See revision.ts. */
|
|
453
653
|
checkId: z.ZodOptional<z.ZodString>;
|
|
654
|
+
/** The journal action that produced it, kept on this machine to pair it with its screenshot. */
|
|
655
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
656
|
+
/** The declared intent this check was taken for, by id: what it proves, named rather than timed. */
|
|
657
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
658
|
+
/** What the page looked like when this check was decided. */
|
|
659
|
+
screenshot: z.ZodOptional<z.ZodObject<{
|
|
660
|
+
file: z.ZodString;
|
|
661
|
+
source: z.ZodNativeEnum<{
|
|
662
|
+
readonly BROWSER: "browser";
|
|
663
|
+
readonly RENDERED: "rendered";
|
|
664
|
+
}>;
|
|
665
|
+
width: z.ZodNumber;
|
|
666
|
+
height: z.ZodNumber;
|
|
667
|
+
sha256: z.ZodString;
|
|
668
|
+
}, "strip", z.ZodTypeAny, {
|
|
669
|
+
file: string;
|
|
670
|
+
source: "browser" | "rendered";
|
|
671
|
+
width: number;
|
|
672
|
+
height: number;
|
|
673
|
+
sha256: string;
|
|
674
|
+
}, {
|
|
675
|
+
file: string;
|
|
676
|
+
source: "browser" | "rendered";
|
|
677
|
+
width: number;
|
|
678
|
+
height: number;
|
|
679
|
+
sha256: string;
|
|
680
|
+
}>>;
|
|
454
681
|
/**
|
|
455
682
|
* The earlier check this one corrects, as `<runId>#<checkId>`.
|
|
456
683
|
*
|
|
@@ -462,23 +689,45 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
462
689
|
status: "yes" | "no" | "unknown" | "no-fault";
|
|
463
690
|
predicate: string;
|
|
464
691
|
kind?: "signal" | "net" | "state" | "element" | "text" | "route" | "console" | "animation" | "settled" | "compare" | "allOf" | "anyOf" | "not" | undefined;
|
|
692
|
+
intent?: string | undefined;
|
|
693
|
+
expected?: string | undefined;
|
|
694
|
+
checkId?: string | undefined;
|
|
695
|
+
actionId?: string | undefined;
|
|
696
|
+
screenshot?: {
|
|
697
|
+
file: string;
|
|
698
|
+
source: "browser" | "rendered";
|
|
699
|
+
width: number;
|
|
700
|
+
height: number;
|
|
701
|
+
sha256: string;
|
|
702
|
+
} | undefined;
|
|
465
703
|
evidence?: unknown;
|
|
466
704
|
declaredBeforeActing?: boolean | undefined;
|
|
705
|
+
observed?: string | undefined;
|
|
467
706
|
grade?: string | undefined;
|
|
468
707
|
couldNotSee?: string[] | undefined;
|
|
469
708
|
reason?: string | undefined;
|
|
470
|
-
checkId?: string | undefined;
|
|
471
709
|
supersedes?: string | undefined;
|
|
472
710
|
}, {
|
|
473
711
|
predicate: string;
|
|
474
712
|
kind?: unknown;
|
|
713
|
+
intent?: string | undefined;
|
|
475
714
|
status?: unknown;
|
|
715
|
+
expected?: string | undefined;
|
|
716
|
+
checkId?: string | undefined;
|
|
717
|
+
actionId?: string | undefined;
|
|
718
|
+
screenshot?: {
|
|
719
|
+
file: string;
|
|
720
|
+
source: "browser" | "rendered";
|
|
721
|
+
width: number;
|
|
722
|
+
height: number;
|
|
723
|
+
sha256: string;
|
|
724
|
+
} | undefined;
|
|
476
725
|
evidence?: unknown;
|
|
477
726
|
declaredBeforeActing?: boolean | undefined;
|
|
727
|
+
observed?: string | undefined;
|
|
478
728
|
grade?: string | undefined;
|
|
479
729
|
couldNotSee?: string[] | undefined;
|
|
480
730
|
reason?: string | undefined;
|
|
481
|
-
checkId?: string | undefined;
|
|
482
731
|
supersedes?: string | undefined;
|
|
483
732
|
}>;
|
|
484
733
|
export type RunCheck = z.infer<typeof RunCheckSchema>;
|
|
@@ -959,6 +1208,29 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
959
1208
|
error: z.ZodOptional<z.ZodString>;
|
|
960
1209
|
/** The drift's reason kind, when the step drifted. */
|
|
961
1210
|
drift: z.ZodOptional<z.ZodString>;
|
|
1211
|
+
/** What the page looked like when this step's outcome was decided. */
|
|
1212
|
+
screenshot: z.ZodOptional<z.ZodObject<{
|
|
1213
|
+
file: z.ZodString;
|
|
1214
|
+
source: z.ZodNativeEnum<{
|
|
1215
|
+
readonly BROWSER: "browser";
|
|
1216
|
+
readonly RENDERED: "rendered";
|
|
1217
|
+
}>;
|
|
1218
|
+
width: z.ZodNumber;
|
|
1219
|
+
height: z.ZodNumber;
|
|
1220
|
+
sha256: z.ZodString;
|
|
1221
|
+
}, "strip", z.ZodTypeAny, {
|
|
1222
|
+
file: string;
|
|
1223
|
+
source: "browser" | "rendered";
|
|
1224
|
+
width: number;
|
|
1225
|
+
height: number;
|
|
1226
|
+
sha256: string;
|
|
1227
|
+
}, {
|
|
1228
|
+
file: string;
|
|
1229
|
+
source: "browser" | "rendered";
|
|
1230
|
+
width: number;
|
|
1231
|
+
height: number;
|
|
1232
|
+
sha256: string;
|
|
1233
|
+
}>>;
|
|
962
1234
|
}, "strip", z.ZodTypeAny, {
|
|
963
1235
|
ok: boolean;
|
|
964
1236
|
step: number;
|
|
@@ -968,6 +1240,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
968
1240
|
page?: string | undefined;
|
|
969
1241
|
endPage?: string | undefined;
|
|
970
1242
|
consequence?: string | undefined;
|
|
1243
|
+
screenshot?: {
|
|
1244
|
+
file: string;
|
|
1245
|
+
source: "browser" | "rendered";
|
|
1246
|
+
width: number;
|
|
1247
|
+
height: number;
|
|
1248
|
+
sha256: string;
|
|
1249
|
+
} | undefined;
|
|
971
1250
|
}, {
|
|
972
1251
|
ok: boolean;
|
|
973
1252
|
step: number;
|
|
@@ -977,6 +1256,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
977
1256
|
page?: string | undefined;
|
|
978
1257
|
endPage?: string | undefined;
|
|
979
1258
|
consequence?: string | undefined;
|
|
1259
|
+
screenshot?: {
|
|
1260
|
+
file: string;
|
|
1261
|
+
source: "browser" | "rendered";
|
|
1262
|
+
width: number;
|
|
1263
|
+
height: number;
|
|
1264
|
+
sha256: string;
|
|
1265
|
+
} | undefined;
|
|
980
1266
|
}>, "many">>;
|
|
981
1267
|
/** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
|
|
982
1268
|
recording: z.ZodOptional<z.ZodObject<{
|
|
@@ -1018,6 +1304,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1018
1304
|
page?: string | undefined;
|
|
1019
1305
|
endPage?: string | undefined;
|
|
1020
1306
|
consequence?: string | undefined;
|
|
1307
|
+
screenshot?: {
|
|
1308
|
+
file: string;
|
|
1309
|
+
source: "browser" | "rendered";
|
|
1310
|
+
width: number;
|
|
1311
|
+
height: number;
|
|
1312
|
+
sha256: string;
|
|
1313
|
+
} | undefined;
|
|
1021
1314
|
}[] | undefined;
|
|
1022
1315
|
recordingOmitted?: boolean | undefined;
|
|
1023
1316
|
}, {
|
|
@@ -1047,6 +1340,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1047
1340
|
page?: string | undefined;
|
|
1048
1341
|
endPage?: string | undefined;
|
|
1049
1342
|
consequence?: string | undefined;
|
|
1343
|
+
screenshot?: {
|
|
1344
|
+
file: string;
|
|
1345
|
+
source: "browser" | "rendered";
|
|
1346
|
+
width: number;
|
|
1347
|
+
height: number;
|
|
1348
|
+
sha256: string;
|
|
1349
|
+
} | undefined;
|
|
1050
1350
|
}[] | undefined;
|
|
1051
1351
|
recordingOmitted?: boolean | undefined;
|
|
1052
1352
|
}>, "many">>;
|
|
@@ -1091,6 +1391,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1091
1391
|
* recorded which, and those are different facts about the evidence.
|
|
1092
1392
|
*/
|
|
1093
1393
|
declaredBeforeActing: z.ZodOptional<z.ZodBoolean>;
|
|
1394
|
+
/**
|
|
1395
|
+
* What the check required and what it saw, in the engine's words, when it said — "an element
|
|
1396
|
+
* matching {"testid":"pay"} in state 'enabled'" and "present, visible, disabled". Without them an
|
|
1397
|
+
* issue a CI run found had no Expected or Actual to show. Optional: older runs carry neither.
|
|
1398
|
+
*/
|
|
1399
|
+
expected: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
observed: z.ZodOptional<z.ZodString>;
|
|
1094
1401
|
/**
|
|
1095
1402
|
* What kind of evidence bought this answer.
|
|
1096
1403
|
*
|
|
@@ -1116,6 +1423,33 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1116
1423
|
reason: z.ZodOptional<z.ZodString>;
|
|
1117
1424
|
/** This check's own name, so a later verdict can cite it. See revision.ts. */
|
|
1118
1425
|
checkId: z.ZodOptional<z.ZodString>;
|
|
1426
|
+
/** The journal action that produced it, kept on this machine to pair it with its screenshot. */
|
|
1427
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
1428
|
+
/** The declared intent this check was taken for, by id: what it proves, named rather than timed. */
|
|
1429
|
+
intent: z.ZodOptional<z.ZodString>;
|
|
1430
|
+
/** What the page looked like when this check was decided. */
|
|
1431
|
+
screenshot: z.ZodOptional<z.ZodObject<{
|
|
1432
|
+
file: z.ZodString;
|
|
1433
|
+
source: z.ZodNativeEnum<{
|
|
1434
|
+
readonly BROWSER: "browser";
|
|
1435
|
+
readonly RENDERED: "rendered";
|
|
1436
|
+
}>;
|
|
1437
|
+
width: z.ZodNumber;
|
|
1438
|
+
height: z.ZodNumber;
|
|
1439
|
+
sha256: z.ZodString;
|
|
1440
|
+
}, "strip", z.ZodTypeAny, {
|
|
1441
|
+
file: string;
|
|
1442
|
+
source: "browser" | "rendered";
|
|
1443
|
+
width: number;
|
|
1444
|
+
height: number;
|
|
1445
|
+
sha256: string;
|
|
1446
|
+
}, {
|
|
1447
|
+
file: string;
|
|
1448
|
+
source: "browser" | "rendered";
|
|
1449
|
+
width: number;
|
|
1450
|
+
height: number;
|
|
1451
|
+
sha256: string;
|
|
1452
|
+
}>>;
|
|
1119
1453
|
/**
|
|
1120
1454
|
* The earlier check this one corrects, as `<runId>#<checkId>`.
|
|
1121
1455
|
*
|
|
@@ -1127,23 +1461,45 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1127
1461
|
status: "yes" | "no" | "unknown" | "no-fault";
|
|
1128
1462
|
predicate: string;
|
|
1129
1463
|
kind?: "signal" | "net" | "state" | "element" | "text" | "route" | "console" | "animation" | "settled" | "compare" | "allOf" | "anyOf" | "not" | undefined;
|
|
1464
|
+
intent?: string | undefined;
|
|
1465
|
+
expected?: string | undefined;
|
|
1466
|
+
checkId?: string | undefined;
|
|
1467
|
+
actionId?: string | undefined;
|
|
1468
|
+
screenshot?: {
|
|
1469
|
+
file: string;
|
|
1470
|
+
source: "browser" | "rendered";
|
|
1471
|
+
width: number;
|
|
1472
|
+
height: number;
|
|
1473
|
+
sha256: string;
|
|
1474
|
+
} | undefined;
|
|
1130
1475
|
evidence?: unknown;
|
|
1131
1476
|
declaredBeforeActing?: boolean | undefined;
|
|
1477
|
+
observed?: string | undefined;
|
|
1132
1478
|
grade?: string | undefined;
|
|
1133
1479
|
couldNotSee?: string[] | undefined;
|
|
1134
1480
|
reason?: string | undefined;
|
|
1135
|
-
checkId?: string | undefined;
|
|
1136
1481
|
supersedes?: string | undefined;
|
|
1137
1482
|
}, {
|
|
1138
1483
|
predicate: string;
|
|
1139
1484
|
kind?: unknown;
|
|
1485
|
+
intent?: string | undefined;
|
|
1140
1486
|
status?: unknown;
|
|
1487
|
+
expected?: string | undefined;
|
|
1488
|
+
checkId?: string | undefined;
|
|
1489
|
+
actionId?: string | undefined;
|
|
1490
|
+
screenshot?: {
|
|
1491
|
+
file: string;
|
|
1492
|
+
source: "browser" | "rendered";
|
|
1493
|
+
width: number;
|
|
1494
|
+
height: number;
|
|
1495
|
+
sha256: string;
|
|
1496
|
+
} | undefined;
|
|
1141
1497
|
evidence?: unknown;
|
|
1142
1498
|
declaredBeforeActing?: boolean | undefined;
|
|
1499
|
+
observed?: string | undefined;
|
|
1143
1500
|
grade?: string | undefined;
|
|
1144
1501
|
couldNotSee?: string[] | undefined;
|
|
1145
1502
|
reason?: string | undefined;
|
|
1146
|
-
checkId?: string | undefined;
|
|
1147
1503
|
supersedes?: string | undefined;
|
|
1148
1504
|
}>, "many">>;
|
|
1149
1505
|
risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1380,6 +1736,52 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1380
1736
|
} | undefined;
|
|
1381
1737
|
}[] | undefined;
|
|
1382
1738
|
}>>;
|
|
1739
|
+
/** What the page looked like after each action, assert and replayed step. Absent on older runs. */
|
|
1740
|
+
screenshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1741
|
+
file: z.ZodString;
|
|
1742
|
+
source: z.ZodNativeEnum<{
|
|
1743
|
+
readonly BROWSER: "browser";
|
|
1744
|
+
readonly RENDERED: "rendered";
|
|
1745
|
+
}>;
|
|
1746
|
+
width: z.ZodNumber;
|
|
1747
|
+
height: z.ZodNumber;
|
|
1748
|
+
sha256: z.ZodString;
|
|
1749
|
+
} & {
|
|
1750
|
+
seq: z.ZodNumber;
|
|
1751
|
+
tool: z.ZodString;
|
|
1752
|
+
/** The flow step it belongs to, as `<flow>#<step>`, when it was taken during a replay. */
|
|
1753
|
+
step: z.ZodOptional<z.ZodString>;
|
|
1754
|
+
/** Taken for a call that produced a verdict — what lets the run pair it with its check. */
|
|
1755
|
+
verdict: z.ZodOptional<z.ZodBoolean>;
|
|
1756
|
+
/** The check this picture is of (see `RunCheck.checkId`), when it could be paired with one. */
|
|
1757
|
+
checkId: z.ZodOptional<z.ZodString>;
|
|
1758
|
+
/** The journal action it was taken for: how a run pairs it with its check (`RunCheck.actionId`). */
|
|
1759
|
+
actionId: z.ZodOptional<z.ZodString>;
|
|
1760
|
+
}, "strip", z.ZodTypeAny, {
|
|
1761
|
+
file: string;
|
|
1762
|
+
source: "browser" | "rendered";
|
|
1763
|
+
width: number;
|
|
1764
|
+
height: number;
|
|
1765
|
+
sha256: string;
|
|
1766
|
+
seq: number;
|
|
1767
|
+
tool: string;
|
|
1768
|
+
step?: string | undefined;
|
|
1769
|
+
verdict?: boolean | undefined;
|
|
1770
|
+
checkId?: string | undefined;
|
|
1771
|
+
actionId?: string | undefined;
|
|
1772
|
+
}, {
|
|
1773
|
+
file: string;
|
|
1774
|
+
source: "browser" | "rendered";
|
|
1775
|
+
width: number;
|
|
1776
|
+
height: number;
|
|
1777
|
+
sha256: string;
|
|
1778
|
+
seq: number;
|
|
1779
|
+
tool: string;
|
|
1780
|
+
step?: string | undefined;
|
|
1781
|
+
verdict?: boolean | undefined;
|
|
1782
|
+
checkId?: string | undefined;
|
|
1783
|
+
actionId?: string | undefined;
|
|
1784
|
+
}>, "many">>;
|
|
1383
1785
|
verdict: z.ZodObject<{
|
|
1384
1786
|
status: z.ZodNativeEnum<{
|
|
1385
1787
|
readonly PASS: "pass";
|
|
@@ -1447,6 +1849,100 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1447
1849
|
alg: string;
|
|
1448
1850
|
signedAt: number;
|
|
1449
1851
|
}>>;
|
|
1852
|
+
/**
|
|
1853
|
+
* On a Harness run: each goal the session's coding agent also judged, and how the two compare.
|
|
1854
|
+
* Optional and additive; an older platform strips it and keeps the body.
|
|
1855
|
+
*/
|
|
1856
|
+
disparity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1857
|
+
goal: z.ZodString;
|
|
1858
|
+
kind: z.ZodNativeEnum<{
|
|
1859
|
+
readonly FINDABLE: "findable";
|
|
1860
|
+
readonly DISCOVERABILITY: "discoverability";
|
|
1861
|
+
readonly AGENT_ASSUMPTION: "agent_assumption";
|
|
1862
|
+
readonly DEFECT: "defect";
|
|
1863
|
+
}>;
|
|
1864
|
+
agent: z.ZodObject<{
|
|
1865
|
+
verified: z.ZodNativeEnum<{
|
|
1866
|
+
readonly YES: "yes";
|
|
1867
|
+
readonly NO: "no";
|
|
1868
|
+
readonly UNKNOWN: "unknown";
|
|
1869
|
+
readonly NO_FAULT: "no-fault";
|
|
1870
|
+
}>;
|
|
1871
|
+
claim: z.ZodString;
|
|
1872
|
+
}, "strip", z.ZodTypeAny, {
|
|
1873
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1874
|
+
claim: string;
|
|
1875
|
+
}, {
|
|
1876
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1877
|
+
claim: string;
|
|
1878
|
+
}>;
|
|
1879
|
+
harness: z.ZodObject<{
|
|
1880
|
+
verified: z.ZodNativeEnum<{
|
|
1881
|
+
readonly YES: "yes";
|
|
1882
|
+
readonly NO: "no";
|
|
1883
|
+
readonly UNKNOWN: "unknown";
|
|
1884
|
+
readonly NO_FAULT: "no-fault";
|
|
1885
|
+
}>;
|
|
1886
|
+
found: z.ZodBoolean;
|
|
1887
|
+
searched: z.ZodArray<z.ZodString, "many">;
|
|
1888
|
+
gaveUpAt: z.ZodOptional<z.ZodString>;
|
|
1889
|
+
}, "strip", z.ZodTypeAny, {
|
|
1890
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1891
|
+
found: boolean;
|
|
1892
|
+
searched: string[];
|
|
1893
|
+
gaveUpAt?: string | undefined;
|
|
1894
|
+
}, {
|
|
1895
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1896
|
+
found: boolean;
|
|
1897
|
+
searched: string[];
|
|
1898
|
+
gaveUpAt?: string | undefined;
|
|
1899
|
+
}>;
|
|
1900
|
+
}, "strip", z.ZodTypeAny, {
|
|
1901
|
+
kind: "findable" | "discoverability" | "agent_assumption" | "defect";
|
|
1902
|
+
goal: string;
|
|
1903
|
+
agent: {
|
|
1904
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1905
|
+
claim: string;
|
|
1906
|
+
};
|
|
1907
|
+
harness: {
|
|
1908
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1909
|
+
found: boolean;
|
|
1910
|
+
searched: string[];
|
|
1911
|
+
gaveUpAt?: string | undefined;
|
|
1912
|
+
};
|
|
1913
|
+
}, {
|
|
1914
|
+
kind: "findable" | "discoverability" | "agent_assumption" | "defect";
|
|
1915
|
+
goal: string;
|
|
1916
|
+
agent: {
|
|
1917
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1918
|
+
claim: string;
|
|
1919
|
+
};
|
|
1920
|
+
harness: {
|
|
1921
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1922
|
+
found: boolean;
|
|
1923
|
+
searched: string[];
|
|
1924
|
+
gaveUpAt?: string | undefined;
|
|
1925
|
+
};
|
|
1926
|
+
}>, "many">>;
|
|
1927
|
+
/**
|
|
1928
|
+
* What the coding agent itself said the session showed (`reticle_session { end, claim }`), kept
|
|
1929
|
+
* beside the graded `verdict` so claimed-vs-graded can be compared. Never read as the verdict.
|
|
1930
|
+
*/
|
|
1931
|
+
agentClaim: z.ZodOptional<z.ZodNativeEnum<{
|
|
1932
|
+
readonly PASS: "pass";
|
|
1933
|
+
readonly FAIL: "fail";
|
|
1934
|
+
readonly PARTIAL: "partial";
|
|
1935
|
+
/**
|
|
1936
|
+
* Nothing was proved either way -- no flow and no check produced an outcome, so there is nothing
|
|
1937
|
+
* to pass and nothing to fail.
|
|
1938
|
+
*
|
|
1939
|
+
* This is deliberately NOT a pass. A run that checked nothing and a run that checked everything
|
|
1940
|
+
* successfully are different facts, and flattening them into one word is how a green light comes
|
|
1941
|
+
* to mean "we did not look". It matches how a single action is already judged, where "could not
|
|
1942
|
+
* tell" has always been its own answer.
|
|
1943
|
+
*/
|
|
1944
|
+
readonly UNKNOWN: "unknown";
|
|
1945
|
+
}>>;
|
|
1450
1946
|
}, "strip", z.ZodTypeAny, {
|
|
1451
1947
|
flows: {
|
|
1452
1948
|
status: "pass" | "fail" | "healed" | "skipped";
|
|
@@ -1475,9 +1971,29 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1475
1971
|
page?: string | undefined;
|
|
1476
1972
|
endPage?: string | undefined;
|
|
1477
1973
|
consequence?: string | undefined;
|
|
1974
|
+
screenshot?: {
|
|
1975
|
+
file: string;
|
|
1976
|
+
source: "browser" | "rendered";
|
|
1977
|
+
width: number;
|
|
1978
|
+
height: number;
|
|
1979
|
+
sha256: string;
|
|
1980
|
+
} | undefined;
|
|
1478
1981
|
}[] | undefined;
|
|
1479
1982
|
recordingOmitted?: boolean | undefined;
|
|
1480
1983
|
}[];
|
|
1984
|
+
agent: {
|
|
1985
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1986
|
+
id: string;
|
|
1987
|
+
model?: string | undefined;
|
|
1988
|
+
};
|
|
1989
|
+
verdict: {
|
|
1990
|
+
status: "pass" | "fail" | "unknown" | "partial";
|
|
1991
|
+
reasons: string[];
|
|
1992
|
+
confidence: "low" | "medium" | "high";
|
|
1993
|
+
blockingRisks: number;
|
|
1994
|
+
checkId?: string | undefined;
|
|
1995
|
+
supersedes?: string | undefined;
|
|
1996
|
+
};
|
|
1481
1997
|
durationMs: number;
|
|
1482
1998
|
evidence: {
|
|
1483
1999
|
consoleErrors: {
|
|
@@ -1515,11 +2031,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1515
2031
|
env?: "ci" | "preview" | "local" | undefined;
|
|
1516
2032
|
previewUrl?: string | undefined;
|
|
1517
2033
|
};
|
|
1518
|
-
agent: {
|
|
1519
|
-
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1520
|
-
id: string;
|
|
1521
|
-
model?: string | undefined;
|
|
1522
|
-
};
|
|
1523
2034
|
trigger: {
|
|
1524
2035
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
1525
2036
|
diffRef?: string | undefined;
|
|
@@ -1534,12 +2045,23 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1534
2045
|
status: "yes" | "no" | "unknown" | "no-fault";
|
|
1535
2046
|
predicate: string;
|
|
1536
2047
|
kind?: "signal" | "net" | "state" | "element" | "text" | "route" | "console" | "animation" | "settled" | "compare" | "allOf" | "anyOf" | "not" | undefined;
|
|
2048
|
+
intent?: string | undefined;
|
|
2049
|
+
expected?: string | undefined;
|
|
2050
|
+
checkId?: string | undefined;
|
|
2051
|
+
actionId?: string | undefined;
|
|
2052
|
+
screenshot?: {
|
|
2053
|
+
file: string;
|
|
2054
|
+
source: "browser" | "rendered";
|
|
2055
|
+
width: number;
|
|
2056
|
+
height: number;
|
|
2057
|
+
sha256: string;
|
|
2058
|
+
} | undefined;
|
|
1537
2059
|
evidence?: unknown;
|
|
1538
2060
|
declaredBeforeActing?: boolean | undefined;
|
|
2061
|
+
observed?: string | undefined;
|
|
1539
2062
|
grade?: string | undefined;
|
|
1540
2063
|
couldNotSee?: string[] | undefined;
|
|
1541
2064
|
reason?: string | undefined;
|
|
1542
|
-
checkId?: string | undefined;
|
|
1543
2065
|
supersedes?: string | undefined;
|
|
1544
2066
|
}[];
|
|
1545
2067
|
risks: {
|
|
@@ -1553,14 +2075,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1553
2075
|
line?: number | undefined;
|
|
1554
2076
|
} | undefined;
|
|
1555
2077
|
}[];
|
|
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
|
-
};
|
|
1564
2078
|
editEpoch?: number | undefined;
|
|
1565
2079
|
subject?: {
|
|
1566
2080
|
surface: string;
|
|
@@ -1584,12 +2098,53 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1584
2098
|
} | undefined;
|
|
1585
2099
|
}[];
|
|
1586
2100
|
} | undefined;
|
|
2101
|
+
screenshots?: {
|
|
2102
|
+
file: string;
|
|
2103
|
+
source: "browser" | "rendered";
|
|
2104
|
+
width: number;
|
|
2105
|
+
height: number;
|
|
2106
|
+
sha256: string;
|
|
2107
|
+
seq: number;
|
|
2108
|
+
tool: string;
|
|
2109
|
+
step?: string | undefined;
|
|
2110
|
+
verdict?: boolean | undefined;
|
|
2111
|
+
checkId?: string | undefined;
|
|
2112
|
+
actionId?: string | undefined;
|
|
2113
|
+
}[] | undefined;
|
|
1587
2114
|
signature?: {
|
|
1588
2115
|
value: string;
|
|
1589
2116
|
alg: string;
|
|
1590
2117
|
signedAt: number;
|
|
1591
2118
|
} | undefined;
|
|
2119
|
+
disparity?: {
|
|
2120
|
+
kind: "findable" | "discoverability" | "agent_assumption" | "defect";
|
|
2121
|
+
goal: string;
|
|
2122
|
+
agent: {
|
|
2123
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
2124
|
+
claim: string;
|
|
2125
|
+
};
|
|
2126
|
+
harness: {
|
|
2127
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
2128
|
+
found: boolean;
|
|
2129
|
+
searched: string[];
|
|
2130
|
+
gaveUpAt?: string | undefined;
|
|
2131
|
+
};
|
|
2132
|
+
}[] | undefined;
|
|
2133
|
+
agentClaim?: "pass" | "fail" | "unknown" | "partial" | undefined;
|
|
1592
2134
|
}, {
|
|
2135
|
+
agent: {
|
|
2136
|
+
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
2137
|
+
id: string;
|
|
2138
|
+
model?: string | undefined;
|
|
2139
|
+
};
|
|
2140
|
+
verdict: {
|
|
2141
|
+
status: "pass" | "fail" | "unknown" | "partial";
|
|
2142
|
+
confidence: "low" | "medium" | "high";
|
|
2143
|
+
checkId?: string | undefined;
|
|
2144
|
+
supersedes?: string | undefined;
|
|
2145
|
+
reasons?: string[] | undefined;
|
|
2146
|
+
blockingRisks?: number | undefined;
|
|
2147
|
+
};
|
|
1593
2148
|
durationMs: number;
|
|
1594
2149
|
evidence: {
|
|
1595
2150
|
consoleErrors?: {
|
|
@@ -1627,24 +2182,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1627
2182
|
env?: "ci" | "preview" | "local" | undefined;
|
|
1628
2183
|
previewUrl?: string | undefined;
|
|
1629
2184
|
};
|
|
1630
|
-
agent: {
|
|
1631
|
-
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1632
|
-
id: string;
|
|
1633
|
-
model?: string | undefined;
|
|
1634
|
-
};
|
|
1635
2185
|
trigger: {
|
|
1636
2186
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
1637
2187
|
diffRef?: string | undefined;
|
|
1638
2188
|
note?: string | undefined;
|
|
1639
2189
|
};
|
|
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
2190
|
flows?: {
|
|
1649
2191
|
status: "pass" | "fail" | "healed" | "skipped";
|
|
1650
2192
|
steps: number;
|
|
@@ -1672,6 +2214,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1672
2214
|
page?: string | undefined;
|
|
1673
2215
|
endPage?: string | undefined;
|
|
1674
2216
|
consequence?: string | undefined;
|
|
2217
|
+
screenshot?: {
|
|
2218
|
+
file: string;
|
|
2219
|
+
source: "browser" | "rendered";
|
|
2220
|
+
width: number;
|
|
2221
|
+
height: number;
|
|
2222
|
+
sha256: string;
|
|
2223
|
+
} | undefined;
|
|
1675
2224
|
}[] | undefined;
|
|
1676
2225
|
recordingOmitted?: boolean | undefined;
|
|
1677
2226
|
}[] | undefined;
|
|
@@ -1692,13 +2241,24 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1692
2241
|
checks?: {
|
|
1693
2242
|
predicate: string;
|
|
1694
2243
|
kind?: unknown;
|
|
2244
|
+
intent?: string | undefined;
|
|
1695
2245
|
status?: unknown;
|
|
2246
|
+
expected?: string | undefined;
|
|
2247
|
+
checkId?: string | undefined;
|
|
2248
|
+
actionId?: string | undefined;
|
|
2249
|
+
screenshot?: {
|
|
2250
|
+
file: string;
|
|
2251
|
+
source: "browser" | "rendered";
|
|
2252
|
+
width: number;
|
|
2253
|
+
height: number;
|
|
2254
|
+
sha256: string;
|
|
2255
|
+
} | undefined;
|
|
1696
2256
|
evidence?: unknown;
|
|
1697
2257
|
declaredBeforeActing?: boolean | undefined;
|
|
2258
|
+
observed?: string | undefined;
|
|
1698
2259
|
grade?: string | undefined;
|
|
1699
2260
|
couldNotSee?: string[] | undefined;
|
|
1700
2261
|
reason?: string | undefined;
|
|
1701
|
-
checkId?: string | undefined;
|
|
1702
2262
|
supersedes?: string | undefined;
|
|
1703
2263
|
}[] | undefined;
|
|
1704
2264
|
risks?: {
|
|
@@ -1726,11 +2286,39 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1726
2286
|
} | undefined;
|
|
1727
2287
|
}[] | undefined;
|
|
1728
2288
|
} | undefined;
|
|
2289
|
+
screenshots?: {
|
|
2290
|
+
file: string;
|
|
2291
|
+
source: "browser" | "rendered";
|
|
2292
|
+
width: number;
|
|
2293
|
+
height: number;
|
|
2294
|
+
sha256: string;
|
|
2295
|
+
seq: number;
|
|
2296
|
+
tool: string;
|
|
2297
|
+
step?: string | undefined;
|
|
2298
|
+
verdict?: boolean | undefined;
|
|
2299
|
+
checkId?: string | undefined;
|
|
2300
|
+
actionId?: string | undefined;
|
|
2301
|
+
}[] | undefined;
|
|
1729
2302
|
signature?: {
|
|
1730
2303
|
value: string;
|
|
1731
2304
|
alg: string;
|
|
1732
2305
|
signedAt: number;
|
|
1733
2306
|
} | undefined;
|
|
2307
|
+
disparity?: {
|
|
2308
|
+
kind: "findable" | "discoverability" | "agent_assumption" | "defect";
|
|
2309
|
+
goal: string;
|
|
2310
|
+
agent: {
|
|
2311
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
2312
|
+
claim: string;
|
|
2313
|
+
};
|
|
2314
|
+
harness: {
|
|
2315
|
+
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
2316
|
+
found: boolean;
|
|
2317
|
+
searched: string[];
|
|
2318
|
+
gaveUpAt?: string | undefined;
|
|
2319
|
+
};
|
|
2320
|
+
}[] | undefined;
|
|
2321
|
+
agentClaim?: "pass" | "fail" | "unknown" | "partial" | undefined;
|
|
1734
2322
|
}>;
|
|
1735
2323
|
export type ReticleVerificationRun = z.infer<typeof ReticleVerificationRunSchema>;
|
|
1736
2324
|
export type VerificationEvidence = z.infer<typeof VerificationEvidenceSchema>;
|