@reticlehq/core 3.5.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 +4 -0
- package/dist/artifacts/artifacts-entry.js +4 -0
- package/dist/artifacts/drive-script.d.ts +1404 -0
- package/dist/artifacts/drive-script.js +220 -0
- package/dist/artifacts/flow-constants.d.ts +19 -0
- package/dist/artifacts/flow-constants.js +21 -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 +75 -427
- package/dist/artifacts/flow-types.js +15 -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/hud-notices.d.ts +134 -0
- package/dist/artifacts/hud-notices.js +124 -0
- package/dist/artifacts/impact.d.ts +489 -189
- package/dist/artifacts/impact.js +90 -47
- package/dist/artifacts/journal.d.ts +105 -5
- package/dist/artifacts/journal.js +41 -0
- package/dist/artifacts/prompt-context.d.ts +105 -0
- package/dist/artifacts/prompt-context.js +108 -0
- package/dist/artifacts/screenshot-upload.d.ts +51 -0
- package/dist/artifacts/screenshot-upload.js +26 -0
- package/dist/desktop-contract.cjs +1 -0
- package/dist/desktop-contract.d.cts +1 -0
- package/dist/hooks/hook-events.d.ts +4 -4
- package/dist/hud-entry.d.ts +2 -0
- package/dist/hud-entry.js +4 -0
- package/dist/identity/contract-fingerprint.d.ts +9 -0
- package/dist/identity/contract-fingerprint.js +12 -0
- package/dist/identity/testid-attribute.d.ts +18 -0
- package/dist/identity/testid-attribute.js +24 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +9 -1
- package/dist/onboarding.d.ts +10 -2
- package/dist/onboarding.js +6 -0
- package/dist/realm/registry.js +19 -1
- package/dist/schema/command-message.json +36 -0
- package/dist/schema/command-name.json +5 -1
- package/dist/schema/event-payloads.json +56 -2
- package/dist/schema/reticle-message.json +36 -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 +5 -4
- package/dist/telemetry-session.d.ts +79 -1
- package/dist/telemetry-session.js +57 -1
- package/dist/telemetry-signals.d.ts +339 -0
- package/dist/telemetry-signals.js +138 -0
- package/dist/telemetry.d.ts +330 -276
- package/dist/telemetry.js +40 -115
- package/dist/tour.d.ts +1 -0
- package/dist/tour.js +13 -5
- package/dist/verdict/consequence.d.ts +3 -0
- package/dist/verdict/disparity.d.ts +105 -0
- package/dist/verdict/disparity.js +40 -0
- package/dist/verdict/findings.d.ts +11 -0
- package/dist/verdict/findings.js +16 -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 +28 -0
- package/dist/verdict/predicate.js +94 -15
- package/dist/verdict/security.d.ts +25 -0
- package/dist/verdict/security.js +82 -0
- package/dist/verdict/verdict-attribution.js +1 -0
- package/dist/verdict/verification-run.d.ts +638 -32
- package/dist/verdict/verification-run.js +90 -0
- package/dist/verdict/verified-constants.d.ts +19 -0
- package/dist/verdict/verified-constants.js +22 -0
- package/dist/wire/constants/constants.d.ts +60 -32
- package/dist/wire/constants/constants.js +61 -33
- package/dist/wire/constants/hud-controls.d.ts +1 -1
- package/dist/wire/constants/hud-controls.js +34 -1
- package/dist/wire/constants/hud-use.d.ts +89 -1
- package/dist/wire/constants/hud-use.js +62 -1
- 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 +21 -0
- package/dist/wire/constants/session-constants.js +21 -0
- package/dist/wire/desktop-contract.d.ts +11 -0
- package/dist/wire/desktop-contract.js +14 -0
- package/dist/wire/event-payloads.d.ts +77 -4
- package/dist/wire/event-payloads.js +27 -0
- package/dist/wire/global-press.d.ts +34 -3
- package/dist/wire/global-press.js +91 -3
- package/dist/wire/hold.d.ts +14 -0
- package/dist/wire/hold.js +18 -0
- package/dist/wire/messages.d.ts +129 -32
- package/dist/wire/messages.js +17 -1
- package/dist/wire/platform-link.d.ts +238 -0
- package/dist/wire/platform-link.js +234 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +26 -6
- package/dist/wire/types.js +5 -0
- package/dist/words/no-session-reason.d.ts +7 -0
- package/dist/words/no-session-reason.js +7 -0
- package/dist/words/notices.d.ts +1 -1
- package/dist/words/notices.js +5 -3
- 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
|
/**
|
|
@@ -255,6 +397,8 @@ export declare const RunFlowRecordingSchema: z.ZodObject<{
|
|
|
255
397
|
/** A flow that was replayed as part of the run. */
|
|
256
398
|
export declare const RunFlowResultSchema: z.ZodObject<{
|
|
257
399
|
name: z.ZodString;
|
|
400
|
+
/** The saved flow this replayed copy was generated from — see the flow file's `template`. */
|
|
401
|
+
template: z.ZodOptional<z.ZodString>;
|
|
258
402
|
status: z.ZodNativeEnum<{
|
|
259
403
|
readonly PASS: "pass";
|
|
260
404
|
readonly FAIL: "fail";
|
|
@@ -290,6 +434,29 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
290
434
|
error: z.ZodOptional<z.ZodString>;
|
|
291
435
|
/** The drift's reason kind, when the step drifted. */
|
|
292
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
|
+
}>>;
|
|
293
460
|
}, "strip", z.ZodTypeAny, {
|
|
294
461
|
ok: boolean;
|
|
295
462
|
step: number;
|
|
@@ -299,6 +466,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
299
466
|
page?: string | undefined;
|
|
300
467
|
endPage?: string | undefined;
|
|
301
468
|
consequence?: string | undefined;
|
|
469
|
+
screenshot?: {
|
|
470
|
+
file: string;
|
|
471
|
+
source: "browser" | "rendered";
|
|
472
|
+
width: number;
|
|
473
|
+
height: number;
|
|
474
|
+
sha256: string;
|
|
475
|
+
} | undefined;
|
|
302
476
|
}, {
|
|
303
477
|
ok: boolean;
|
|
304
478
|
step: number;
|
|
@@ -308,6 +482,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
308
482
|
page?: string | undefined;
|
|
309
483
|
endPage?: string | undefined;
|
|
310
484
|
consequence?: string | undefined;
|
|
485
|
+
screenshot?: {
|
|
486
|
+
file: string;
|
|
487
|
+
source: "browser" | "rendered";
|
|
488
|
+
width: number;
|
|
489
|
+
height: number;
|
|
490
|
+
sha256: string;
|
|
491
|
+
} | undefined;
|
|
311
492
|
}>, "many">>;
|
|
312
493
|
/** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
|
|
313
494
|
recording: z.ZodOptional<z.ZodObject<{
|
|
@@ -336,6 +517,7 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
336
517
|
to: string;
|
|
337
518
|
consequenceVerified: boolean;
|
|
338
519
|
} | undefined;
|
|
520
|
+
template?: string | undefined;
|
|
339
521
|
oracle?: string | undefined;
|
|
340
522
|
evidenceRef?: string | undefined;
|
|
341
523
|
failureReason?: string | undefined;
|
|
@@ -348,6 +530,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
348
530
|
page?: string | undefined;
|
|
349
531
|
endPage?: string | undefined;
|
|
350
532
|
consequence?: string | undefined;
|
|
533
|
+
screenshot?: {
|
|
534
|
+
file: string;
|
|
535
|
+
source: "browser" | "rendered";
|
|
536
|
+
width: number;
|
|
537
|
+
height: number;
|
|
538
|
+
sha256: string;
|
|
539
|
+
} | undefined;
|
|
351
540
|
}[] | undefined;
|
|
352
541
|
recordingOmitted?: boolean | undefined;
|
|
353
542
|
}, {
|
|
@@ -364,6 +553,7 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
364
553
|
to: string;
|
|
365
554
|
consequenceVerified: boolean;
|
|
366
555
|
} | undefined;
|
|
556
|
+
template?: string | undefined;
|
|
367
557
|
oracle?: string | undefined;
|
|
368
558
|
evidenceRef?: string | undefined;
|
|
369
559
|
failureReason?: string | undefined;
|
|
@@ -376,6 +566,13 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
376
566
|
page?: string | undefined;
|
|
377
567
|
endPage?: string | undefined;
|
|
378
568
|
consequence?: string | undefined;
|
|
569
|
+
screenshot?: {
|
|
570
|
+
file: string;
|
|
571
|
+
source: "browser" | "rendered";
|
|
572
|
+
width: number;
|
|
573
|
+
height: number;
|
|
574
|
+
sha256: string;
|
|
575
|
+
} | undefined;
|
|
379
576
|
}[] | undefined;
|
|
380
577
|
recordingOmitted?: boolean | undefined;
|
|
381
578
|
}>;
|
|
@@ -422,6 +619,13 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
422
619
|
* recorded which, and those are different facts about the evidence.
|
|
423
620
|
*/
|
|
424
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>;
|
|
425
629
|
/**
|
|
426
630
|
* What kind of evidence bought this answer.
|
|
427
631
|
*
|
|
@@ -447,6 +651,33 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
447
651
|
reason: z.ZodOptional<z.ZodString>;
|
|
448
652
|
/** This check's own name, so a later verdict can cite it. See revision.ts. */
|
|
449
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
|
+
}>>;
|
|
450
681
|
/**
|
|
451
682
|
* The earlier check this one corrects, as `<runId>#<checkId>`.
|
|
452
683
|
*
|
|
@@ -458,23 +689,45 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
458
689
|
status: "yes" | "no" | "unknown" | "no-fault";
|
|
459
690
|
predicate: string;
|
|
460
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;
|
|
461
703
|
evidence?: unknown;
|
|
462
704
|
declaredBeforeActing?: boolean | undefined;
|
|
705
|
+
observed?: string | undefined;
|
|
463
706
|
grade?: string | undefined;
|
|
464
707
|
couldNotSee?: string[] | undefined;
|
|
465
708
|
reason?: string | undefined;
|
|
466
|
-
checkId?: string | undefined;
|
|
467
709
|
supersedes?: string | undefined;
|
|
468
710
|
}, {
|
|
469
711
|
predicate: string;
|
|
470
712
|
kind?: unknown;
|
|
713
|
+
intent?: string | undefined;
|
|
471
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;
|
|
472
725
|
evidence?: unknown;
|
|
473
726
|
declaredBeforeActing?: boolean | undefined;
|
|
727
|
+
observed?: string | undefined;
|
|
474
728
|
grade?: string | undefined;
|
|
475
729
|
couldNotSee?: string[] | undefined;
|
|
476
730
|
reason?: string | undefined;
|
|
477
|
-
checkId?: string | undefined;
|
|
478
731
|
supersedes?: string | undefined;
|
|
479
732
|
}>;
|
|
480
733
|
export type RunCheck = z.infer<typeof RunCheckSchema>;
|
|
@@ -884,6 +1137,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
884
1137
|
locator?: string | undefined;
|
|
885
1138
|
revision?: string | undefined;
|
|
886
1139
|
}>>;
|
|
1140
|
+
/**
|
|
1141
|
+
* The prompt this verification answered, when the agent relayed one. Loose here because this
|
|
1142
|
+
* schema loads with every page; its shape is `PromptContextSchema` in `@reticlehq/core/artifacts`,
|
|
1143
|
+
* which the daemon writes and reads it with.
|
|
1144
|
+
*/
|
|
1145
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
887
1146
|
changedFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
888
1147
|
path: z.ZodString;
|
|
889
1148
|
changeKind: z.ZodNativeEnum<{
|
|
@@ -912,6 +1171,8 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
912
1171
|
}>, "many">>;
|
|
913
1172
|
flows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
914
1173
|
name: z.ZodString;
|
|
1174
|
+
/** The saved flow this replayed copy was generated from — see the flow file's `template`. */
|
|
1175
|
+
template: z.ZodOptional<z.ZodString>;
|
|
915
1176
|
status: z.ZodNativeEnum<{
|
|
916
1177
|
readonly PASS: "pass";
|
|
917
1178
|
readonly FAIL: "fail";
|
|
@@ -947,6 +1208,29 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
947
1208
|
error: z.ZodOptional<z.ZodString>;
|
|
948
1209
|
/** The drift's reason kind, when the step drifted. */
|
|
949
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
|
+
}>>;
|
|
950
1234
|
}, "strip", z.ZodTypeAny, {
|
|
951
1235
|
ok: boolean;
|
|
952
1236
|
step: number;
|
|
@@ -956,6 +1240,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
956
1240
|
page?: string | undefined;
|
|
957
1241
|
endPage?: string | undefined;
|
|
958
1242
|
consequence?: string | undefined;
|
|
1243
|
+
screenshot?: {
|
|
1244
|
+
file: string;
|
|
1245
|
+
source: "browser" | "rendered";
|
|
1246
|
+
width: number;
|
|
1247
|
+
height: number;
|
|
1248
|
+
sha256: string;
|
|
1249
|
+
} | undefined;
|
|
959
1250
|
}, {
|
|
960
1251
|
ok: boolean;
|
|
961
1252
|
step: number;
|
|
@@ -965,6 +1256,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
965
1256
|
page?: string | undefined;
|
|
966
1257
|
endPage?: string | undefined;
|
|
967
1258
|
consequence?: string | undefined;
|
|
1259
|
+
screenshot?: {
|
|
1260
|
+
file: string;
|
|
1261
|
+
source: "browser" | "rendered";
|
|
1262
|
+
width: number;
|
|
1263
|
+
height: number;
|
|
1264
|
+
sha256: string;
|
|
1265
|
+
} | undefined;
|
|
968
1266
|
}>, "many">>;
|
|
969
1267
|
/** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
|
|
970
1268
|
recording: z.ZodOptional<z.ZodObject<{
|
|
@@ -993,6 +1291,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
993
1291
|
to: string;
|
|
994
1292
|
consequenceVerified: boolean;
|
|
995
1293
|
} | undefined;
|
|
1294
|
+
template?: string | undefined;
|
|
996
1295
|
oracle?: string | undefined;
|
|
997
1296
|
evidenceRef?: string | undefined;
|
|
998
1297
|
failureReason?: string | undefined;
|
|
@@ -1005,6 +1304,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1005
1304
|
page?: string | undefined;
|
|
1006
1305
|
endPage?: string | undefined;
|
|
1007
1306
|
consequence?: string | undefined;
|
|
1307
|
+
screenshot?: {
|
|
1308
|
+
file: string;
|
|
1309
|
+
source: "browser" | "rendered";
|
|
1310
|
+
width: number;
|
|
1311
|
+
height: number;
|
|
1312
|
+
sha256: string;
|
|
1313
|
+
} | undefined;
|
|
1008
1314
|
}[] | undefined;
|
|
1009
1315
|
recordingOmitted?: boolean | undefined;
|
|
1010
1316
|
}, {
|
|
@@ -1021,6 +1327,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1021
1327
|
to: string;
|
|
1022
1328
|
consequenceVerified: boolean;
|
|
1023
1329
|
} | undefined;
|
|
1330
|
+
template?: string | undefined;
|
|
1024
1331
|
oracle?: string | undefined;
|
|
1025
1332
|
evidenceRef?: string | undefined;
|
|
1026
1333
|
failureReason?: string | undefined;
|
|
@@ -1033,6 +1340,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1033
1340
|
page?: string | undefined;
|
|
1034
1341
|
endPage?: string | undefined;
|
|
1035
1342
|
consequence?: string | undefined;
|
|
1343
|
+
screenshot?: {
|
|
1344
|
+
file: string;
|
|
1345
|
+
source: "browser" | "rendered";
|
|
1346
|
+
width: number;
|
|
1347
|
+
height: number;
|
|
1348
|
+
sha256: string;
|
|
1349
|
+
} | undefined;
|
|
1036
1350
|
}[] | undefined;
|
|
1037
1351
|
recordingOmitted?: boolean | undefined;
|
|
1038
1352
|
}>, "many">>;
|
|
@@ -1077,6 +1391,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1077
1391
|
* recorded which, and those are different facts about the evidence.
|
|
1078
1392
|
*/
|
|
1079
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>;
|
|
1080
1401
|
/**
|
|
1081
1402
|
* What kind of evidence bought this answer.
|
|
1082
1403
|
*
|
|
@@ -1102,6 +1423,33 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1102
1423
|
reason: z.ZodOptional<z.ZodString>;
|
|
1103
1424
|
/** This check's own name, so a later verdict can cite it. See revision.ts. */
|
|
1104
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
|
+
}>>;
|
|
1105
1453
|
/**
|
|
1106
1454
|
* The earlier check this one corrects, as `<runId>#<checkId>`.
|
|
1107
1455
|
*
|
|
@@ -1113,23 +1461,45 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1113
1461
|
status: "yes" | "no" | "unknown" | "no-fault";
|
|
1114
1462
|
predicate: string;
|
|
1115
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;
|
|
1116
1475
|
evidence?: unknown;
|
|
1117
1476
|
declaredBeforeActing?: boolean | undefined;
|
|
1477
|
+
observed?: string | undefined;
|
|
1118
1478
|
grade?: string | undefined;
|
|
1119
1479
|
couldNotSee?: string[] | undefined;
|
|
1120
1480
|
reason?: string | undefined;
|
|
1121
|
-
checkId?: string | undefined;
|
|
1122
1481
|
supersedes?: string | undefined;
|
|
1123
1482
|
}, {
|
|
1124
1483
|
predicate: string;
|
|
1125
1484
|
kind?: unknown;
|
|
1485
|
+
intent?: string | undefined;
|
|
1126
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;
|
|
1127
1497
|
evidence?: unknown;
|
|
1128
1498
|
declaredBeforeActing?: boolean | undefined;
|
|
1499
|
+
observed?: string | undefined;
|
|
1129
1500
|
grade?: string | undefined;
|
|
1130
1501
|
couldNotSee?: string[] | undefined;
|
|
1131
1502
|
reason?: string | undefined;
|
|
1132
|
-
checkId?: string | undefined;
|
|
1133
1503
|
supersedes?: string | undefined;
|
|
1134
1504
|
}>, "many">>;
|
|
1135
1505
|
risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -1366,6 +1736,52 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1366
1736
|
} | undefined;
|
|
1367
1737
|
}[] | undefined;
|
|
1368
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">>;
|
|
1369
1785
|
verdict: z.ZodObject<{
|
|
1370
1786
|
status: z.ZodNativeEnum<{
|
|
1371
1787
|
readonly PASS: "pass";
|
|
@@ -1433,6 +1849,100 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1433
1849
|
alg: string;
|
|
1434
1850
|
signedAt: number;
|
|
1435
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
|
+
}>>;
|
|
1436
1946
|
}, "strip", z.ZodTypeAny, {
|
|
1437
1947
|
flows: {
|
|
1438
1948
|
status: "pass" | "fail" | "healed" | "skipped";
|
|
@@ -1448,6 +1958,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1448
1958
|
to: string;
|
|
1449
1959
|
consequenceVerified: boolean;
|
|
1450
1960
|
} | undefined;
|
|
1961
|
+
template?: string | undefined;
|
|
1451
1962
|
oracle?: string | undefined;
|
|
1452
1963
|
evidenceRef?: string | undefined;
|
|
1453
1964
|
failureReason?: string | undefined;
|
|
@@ -1460,9 +1971,29 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1460
1971
|
page?: string | undefined;
|
|
1461
1972
|
endPage?: string | undefined;
|
|
1462
1973
|
consequence?: string | undefined;
|
|
1974
|
+
screenshot?: {
|
|
1975
|
+
file: string;
|
|
1976
|
+
source: "browser" | "rendered";
|
|
1977
|
+
width: number;
|
|
1978
|
+
height: number;
|
|
1979
|
+
sha256: string;
|
|
1980
|
+
} | undefined;
|
|
1463
1981
|
}[] | undefined;
|
|
1464
1982
|
recordingOmitted?: boolean | undefined;
|
|
1465
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
|
+
};
|
|
1466
1997
|
durationMs: number;
|
|
1467
1998
|
evidence: {
|
|
1468
1999
|
consoleErrors: {
|
|
@@ -1500,11 +2031,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1500
2031
|
env?: "ci" | "preview" | "local" | undefined;
|
|
1501
2032
|
previewUrl?: string | undefined;
|
|
1502
2033
|
};
|
|
1503
|
-
agent: {
|
|
1504
|
-
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1505
|
-
id: string;
|
|
1506
|
-
model?: string | undefined;
|
|
1507
|
-
};
|
|
1508
2034
|
trigger: {
|
|
1509
2035
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
1510
2036
|
diffRef?: string | undefined;
|
|
@@ -1519,12 +2045,23 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1519
2045
|
status: "yes" | "no" | "unknown" | "no-fault";
|
|
1520
2046
|
predicate: string;
|
|
1521
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;
|
|
1522
2059
|
evidence?: unknown;
|
|
1523
2060
|
declaredBeforeActing?: boolean | undefined;
|
|
2061
|
+
observed?: string | undefined;
|
|
1524
2062
|
grade?: string | undefined;
|
|
1525
2063
|
couldNotSee?: string[] | undefined;
|
|
1526
2064
|
reason?: string | undefined;
|
|
1527
|
-
checkId?: string | undefined;
|
|
1528
2065
|
supersedes?: string | undefined;
|
|
1529
2066
|
}[];
|
|
1530
2067
|
risks: {
|
|
@@ -1538,14 +2075,6 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1538
2075
|
line?: number | undefined;
|
|
1539
2076
|
} | undefined;
|
|
1540
2077
|
}[];
|
|
1541
|
-
verdict: {
|
|
1542
|
-
status: "pass" | "fail" | "unknown" | "partial";
|
|
1543
|
-
reasons: string[];
|
|
1544
|
-
confidence: "low" | "medium" | "high";
|
|
1545
|
-
blockingRisks: number;
|
|
1546
|
-
checkId?: string | undefined;
|
|
1547
|
-
supersedes?: string | undefined;
|
|
1548
|
-
};
|
|
1549
2078
|
editEpoch?: number | undefined;
|
|
1550
2079
|
subject?: {
|
|
1551
2080
|
surface: string;
|
|
@@ -1554,6 +2083,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1554
2083
|
locator?: string | undefined;
|
|
1555
2084
|
revision?: string | undefined;
|
|
1556
2085
|
} | undefined;
|
|
2086
|
+
context?: Record<string, unknown> | undefined;
|
|
1557
2087
|
repair?: {
|
|
1558
2088
|
failurePackets: {
|
|
1559
2089
|
expected: string;
|
|
@@ -1568,12 +2098,53 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1568
2098
|
} | undefined;
|
|
1569
2099
|
}[];
|
|
1570
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;
|
|
1571
2114
|
signature?: {
|
|
1572
2115
|
value: string;
|
|
1573
2116
|
alg: string;
|
|
1574
2117
|
signedAt: number;
|
|
1575
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;
|
|
1576
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
|
+
};
|
|
1577
2148
|
durationMs: number;
|
|
1578
2149
|
evidence: {
|
|
1579
2150
|
consoleErrors?: {
|
|
@@ -1611,24 +2182,11 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1611
2182
|
env?: "ci" | "preview" | "local" | undefined;
|
|
1612
2183
|
previewUrl?: string | undefined;
|
|
1613
2184
|
};
|
|
1614
|
-
agent: {
|
|
1615
|
-
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1616
|
-
id: string;
|
|
1617
|
-
model?: string | undefined;
|
|
1618
|
-
};
|
|
1619
2185
|
trigger: {
|
|
1620
2186
|
kind: "manual" | "edit" | "ci" | "oem";
|
|
1621
2187
|
diffRef?: string | undefined;
|
|
1622
2188
|
note?: string | undefined;
|
|
1623
2189
|
};
|
|
1624
|
-
verdict: {
|
|
1625
|
-
status: "pass" | "fail" | "unknown" | "partial";
|
|
1626
|
-
confidence: "low" | "medium" | "high";
|
|
1627
|
-
checkId?: string | undefined;
|
|
1628
|
-
supersedes?: string | undefined;
|
|
1629
|
-
reasons?: string[] | undefined;
|
|
1630
|
-
blockingRisks?: number | undefined;
|
|
1631
|
-
};
|
|
1632
2190
|
flows?: {
|
|
1633
2191
|
status: "pass" | "fail" | "healed" | "skipped";
|
|
1634
2192
|
steps: number;
|
|
@@ -1643,6 +2201,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1643
2201
|
to: string;
|
|
1644
2202
|
consequenceVerified: boolean;
|
|
1645
2203
|
} | undefined;
|
|
2204
|
+
template?: string | undefined;
|
|
1646
2205
|
oracle?: string | undefined;
|
|
1647
2206
|
evidenceRef?: string | undefined;
|
|
1648
2207
|
failureReason?: string | undefined;
|
|
@@ -1655,6 +2214,13 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1655
2214
|
page?: string | undefined;
|
|
1656
2215
|
endPage?: string | undefined;
|
|
1657
2216
|
consequence?: string | undefined;
|
|
2217
|
+
screenshot?: {
|
|
2218
|
+
file: string;
|
|
2219
|
+
source: "browser" | "rendered";
|
|
2220
|
+
width: number;
|
|
2221
|
+
height: number;
|
|
2222
|
+
sha256: string;
|
|
2223
|
+
} | undefined;
|
|
1658
2224
|
}[] | undefined;
|
|
1659
2225
|
recordingOmitted?: boolean | undefined;
|
|
1660
2226
|
}[] | undefined;
|
|
@@ -1666,6 +2232,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1666
2232
|
locator?: string | undefined;
|
|
1667
2233
|
revision?: string | undefined;
|
|
1668
2234
|
} | undefined;
|
|
2235
|
+
context?: Record<string, unknown> | undefined;
|
|
1669
2236
|
changedFiles?: {
|
|
1670
2237
|
path: string;
|
|
1671
2238
|
changeKind: "added" | "modified" | "deleted";
|
|
@@ -1674,13 +2241,24 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1674
2241
|
checks?: {
|
|
1675
2242
|
predicate: string;
|
|
1676
2243
|
kind?: unknown;
|
|
2244
|
+
intent?: string | undefined;
|
|
1677
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;
|
|
1678
2256
|
evidence?: unknown;
|
|
1679
2257
|
declaredBeforeActing?: boolean | undefined;
|
|
2258
|
+
observed?: string | undefined;
|
|
1680
2259
|
grade?: string | undefined;
|
|
1681
2260
|
couldNotSee?: string[] | undefined;
|
|
1682
2261
|
reason?: string | undefined;
|
|
1683
|
-
checkId?: string | undefined;
|
|
1684
2262
|
supersedes?: string | undefined;
|
|
1685
2263
|
}[] | undefined;
|
|
1686
2264
|
risks?: {
|
|
@@ -1708,11 +2286,39 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1708
2286
|
} | undefined;
|
|
1709
2287
|
}[] | undefined;
|
|
1710
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;
|
|
1711
2302
|
signature?: {
|
|
1712
2303
|
value: string;
|
|
1713
2304
|
alg: string;
|
|
1714
2305
|
signedAt: number;
|
|
1715
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;
|
|
1716
2322
|
}>;
|
|
1717
2323
|
export type ReticleVerificationRun = z.infer<typeof ReticleVerificationRunSchema>;
|
|
1718
2324
|
export type VerificationEvidence = z.infer<typeof VerificationEvidenceSchema>;
|