@reticlehq/core 3.7.0 → 3.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/activation-entry.d.ts +9 -0
- package/dist/activation-entry.js +9 -0
- package/dist/artifacts/drive-script.d.ts +84 -1217
- package/dist/artifacts/drive-script.js +1 -1
- package/dist/artifacts/flow-constants.d.ts +15 -0
- package/dist/artifacts/flow-constants.js +15 -0
- package/dist/artifacts/flow-expect-flat.d.ts +8 -192
- package/dist/artifacts/flow-expect-flat.js +2 -2
- package/dist/artifacts/flow-results.d.ts +26 -0
- package/dist/artifacts/flow-types.d.ts +212 -2295
- package/dist/artifacts/flow-types.js +14 -2
- package/dist/artifacts/harness-credits.d.ts +6 -3
- package/dist/artifacts/harness-credits.js +9 -6
- package/dist/artifacts/harness-map.d.ts +8 -69
- package/dist/artifacts/harness-map.js +1 -1
- package/dist/artifacts/hud-notices.d.ts +8 -82
- package/dist/artifacts/hud-notices.js +1 -1
- package/dist/artifacts/impact.d.ts +104 -1665
- package/dist/artifacts/impact.js +38 -21
- package/dist/artifacts/journal.d.ts +15 -231
- package/dist/artifacts/journal.js +15 -2
- package/dist/artifacts/prompt-context.d.ts +7 -33
- package/dist/artifacts/prompt-context.js +15 -4
- package/dist/artifacts/screenshot-upload.d.ts +3 -26
- package/dist/artifacts/screenshot-upload.js +1 -1
- package/dist/graph/app-graph.d.ts +137 -0
- package/dist/graph/app-graph.js +498 -0
- package/dist/hooks/hook-events.d.ts +15 -171
- package/dist/hooks/hook-events.js +1 -1
- package/dist/hud-entry.js +1 -1
- package/dist/identity/checkout.d.ts +41 -0
- package/dist/identity/checkout.js +118 -0
- package/dist/identity/state-dir.d.ts +23 -0
- package/dist/identity/state-dir.js +43 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -0
- package/dist/onboarding.d.ts +23 -52
- package/dist/onboarding.js +20 -1
- package/dist/registry/daemon-registry.d.ts +2 -14
- package/dist/registry/daemon-registry.js +1 -1
- package/dist/registry/dev-server-registry.d.ts +2 -31
- package/dist/registry/dev-server-registry.js +1 -1
- package/dist/registry/project-registry.d.ts +4 -32
- package/dist/registry/project-registry.js +1 -1
- package/dist/schema/command-message.json +65 -68
- package/dist/schema/command-name.json +29 -33
- package/dist/schema/command-result.json +25 -30
- package/dist/schema/event-message.json +104 -101
- package/dist/schema/event-payloads.json +246 -108
- package/dist/schema/event-type.json +47 -48
- package/dist/schema/hello-message.json +150 -133
- package/dist/schema/reticle-event.json +98 -94
- package/dist/schema/reticle-message.json +338 -310
- package/dist/telemetry-bug.d.ts +4 -75
- package/dist/telemetry-bug.js +1 -1
- package/dist/telemetry-entry.d.ts +1 -1
- package/dist/telemetry-entry.js +1 -1
- package/dist/telemetry-feedback.d.ts +17 -91
- package/dist/telemetry-feedback.js +20 -1
- package/dist/telemetry-refusal.d.ts +4 -31
- package/dist/telemetry-refusal.js +1 -1
- package/dist/telemetry-session.d.ts +45 -624
- package/dist/telemetry-session.js +25 -12
- package/dist/telemetry-signals.d.ts +211 -86
- package/dist/telemetry-signals.js +100 -2
- package/dist/telemetry.d.ts +321 -1691
- package/dist/telemetry.js +72 -6
- package/dist/verdict/check-sentence.d.ts +34 -0
- package/dist/verdict/check-sentence.js +228 -0
- package/dist/verdict/compare-source.d.ts +1 -1
- package/dist/verdict/compare-source.js +1 -1
- package/dist/verdict/consequence.d.ts +15 -0
- package/dist/verdict/consequence.js +11 -0
- package/dist/verdict/disparity.d.ts +8 -56
- package/dist/verdict/disparity.js +1 -1
- package/dist/verdict/findings.d.ts +10 -0
- package/dist/verdict/findings.js +13 -0
- package/dist/verdict/instrumentation-coverage.d.ts +6 -37
- package/dist/verdict/instrumentation-coverage.js +15 -59
- package/dist/verdict/instrumentation-gap.d.ts +72 -0
- package/dist/verdict/instrumentation-gap.js +64 -0
- package/dist/verdict/intent.d.ts +25 -224
- package/dist/verdict/intent.js +1 -1
- package/dist/verdict/predicate-tree.d.ts +2 -0
- package/dist/verdict/predicate-tree.js +16 -0
- package/dist/verdict/predicate.d.ts +3 -2
- package/dist/verdict/predicate.js +107 -16
- package/dist/verdict/property-assertion.d.ts +23 -101
- package/dist/verdict/property-assertion.js +1 -1
- package/dist/verdict/run-report.d.ts +71 -0
- package/dist/verdict/run-report.js +53 -0
- package/dist/verdict/security.d.ts +48 -2
- package/dist/verdict/security.js +185 -18
- package/dist/verdict/verification-run.d.ts +124 -1623
- package/dist/verdict/verification-run.js +37 -6
- package/dist/verdict/verify-progress.d.ts +22 -64
- package/dist/verdict/verify-progress.js +1 -1
- package/dist/wire/constants/constants.d.ts +56 -141
- package/dist/wire/constants/constants.js +64 -144
- package/dist/wire/constants/discovery.d.ts +4 -4
- package/dist/wire/constants/discovery.js +4 -4
- package/dist/wire/constants/event-types.d.ts +37 -1
- package/dist/wire/constants/event-types.js +35 -1
- package/dist/wire/constants/hud-controls.js +0 -2
- package/dist/wire/constants/hud-use.d.ts +4 -0
- package/dist/wire/constants/hud-use.js +4 -0
- package/dist/wire/constants/mcp-wire.d.ts +16 -0
- package/dist/wire/constants/mcp-wire.js +16 -0
- package/dist/wire/constants/response-body-reason.d.ts +19 -0
- package/dist/wire/constants/response-body-reason.js +18 -0
- package/dist/wire/constants/reticle-env.d.ts +140 -0
- package/dist/wire/constants/reticle-env.js +140 -0
- package/dist/wire/constants/session-constants.d.ts +11 -0
- package/dist/wire/constants/session-constants.js +11 -0
- package/dist/wire/event-payloads.d.ts +173 -629
- package/dist/wire/event-payloads.js +107 -23
- package/dist/wire/event-priority.js +1 -0
- package/dist/wire/messages.d.ts +90 -713
- package/dist/wire/messages.js +19 -3
- package/dist/wire/narrow.d.ts +6 -0
- package/dist/wire/narrow.js +26 -0
- package/dist/wire/next-step.d.ts +50 -0
- package/dist/wire/next-step.js +37 -0
- package/dist/wire/platform-link.d.ts +7 -0
- package/dist/wire/platform-link.js +14 -8
- package/dist/wire/production/activation-ticket.d.ts +64 -0
- package/dist/wire/production/activation-ticket.js +148 -0
- package/dist/wire/production/hello-mode.d.ts +35 -0
- package/dist/wire/production/hello-mode.js +32 -0
- package/dist/wire/production/production-policy.d.ts +92 -0
- package/dist/wire/production/production-policy.js +133 -0
- package/dist/wire/tool-names.d.ts +2 -0
- package/dist/wire/tool-names.js +2 -0
- package/dist/wire/types.d.ts +102 -700
- package/dist/wire/types.js +5 -5
- package/dist/words/upgrade.d.ts +3 -13
- package/dist/words/upgrade.js +1 -1
- package/package.json +7 -4
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* `z.nativeEnum`, timestamps are epoch-ms NUMBERS (the clock is injected — never read inside pure
|
|
10
10
|
* logic), no `any` (opaque evidence is `z.unknown`), and every domain string is a named constant.
|
|
11
11
|
*/
|
|
12
|
-
import
|
|
12
|
+
import * as z from 'zod';
|
|
13
13
|
import { PredicateKind } from './consequence.js';
|
|
14
14
|
import { Verified } from './verified-constants.js';
|
|
15
15
|
/** Schema version stamped into every run file so a reader can reject/upgrade old artifacts. */
|
|
@@ -18,7 +18,7 @@ export declare const RUN_FILE_VERSION = 3;
|
|
|
18
18
|
* A run's identity, branded so it can't be confused with another id (e.g. a flow name) that also feeds
|
|
19
19
|
* path helpers. The schema brands on parse; mint a fresh one with asRunId at a trusted/validated point.
|
|
20
20
|
*/
|
|
21
|
-
export declare const RunIdSchema: z.ZodBranded<z.ZodString, "RunId">;
|
|
21
|
+
export declare const RunIdSchema: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
22
22
|
export type RunId = z.infer<typeof RunIdSchema>;
|
|
23
23
|
/** Mint a RunId from a raw string — call only at a validated boundary (e.g. behind isValidRunId). */
|
|
24
24
|
export declare const asRunId: (value: string) => RunId;
|
|
@@ -170,25 +170,17 @@ export declare const SourceLocationSchema: z.ZodObject<{
|
|
|
170
170
|
file: z.ZodString;
|
|
171
171
|
line: z.ZodOptional<z.ZodNumber>;
|
|
172
172
|
component: z.ZodOptional<z.ZodString>;
|
|
173
|
-
},
|
|
174
|
-
file: string;
|
|
175
|
-
component?: string | undefined;
|
|
176
|
-
line?: number | undefined;
|
|
177
|
-
}, {
|
|
178
|
-
file: string;
|
|
179
|
-
component?: string | undefined;
|
|
180
|
-
line?: number | undefined;
|
|
181
|
-
}>;
|
|
173
|
+
}, z.core.$strip>;
|
|
182
174
|
export type SourceLocation = z.infer<typeof SourceLocationSchema>;
|
|
183
175
|
/** A file the change set touched, with the risk surfaces it implicates. */
|
|
184
176
|
export declare const RunChangedFileSchema: z.ZodObject<{
|
|
185
177
|
path: z.ZodString;
|
|
186
|
-
changeKind: z.
|
|
178
|
+
changeKind: z.ZodEnum<{
|
|
187
179
|
readonly ADDED: "added";
|
|
188
180
|
readonly MODIFIED: "modified";
|
|
189
181
|
readonly DELETED: "deleted";
|
|
190
182
|
}>;
|
|
191
|
-
risk: z.ZodDefault<z.ZodArray<z.
|
|
183
|
+
risk: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
192
184
|
readonly AUTH: "auth";
|
|
193
185
|
readonly PAYMENT: "payment";
|
|
194
186
|
readonly DB: "db";
|
|
@@ -197,16 +189,8 @@ export declare const RunChangedFileSchema: z.ZodObject<{
|
|
|
197
189
|
readonly SECRETS: "secrets";
|
|
198
190
|
readonly DESTRUCTIVE: "destructive";
|
|
199
191
|
readonly EXTERNAL: "external";
|
|
200
|
-
}
|
|
201
|
-
},
|
|
202
|
-
path: string;
|
|
203
|
-
changeKind: "added" | "modified" | "deleted";
|
|
204
|
-
risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
|
|
205
|
-
}, {
|
|
206
|
-
path: string;
|
|
207
|
-
changeKind: "added" | "modified" | "deleted";
|
|
208
|
-
risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
|
|
209
|
-
}>;
|
|
192
|
+
}>>>;
|
|
193
|
+
}, z.core.$strip>;
|
|
210
194
|
export type RunChangedFile = z.infer<typeof RunChangedFileSchema>;
|
|
211
195
|
/**
|
|
212
196
|
* How much of a replay a synced run carries, so a teammate can replay it from the cloud without the
|
|
@@ -238,77 +222,41 @@ export declare const STEP_SCREENSHOT: {
|
|
|
238
222
|
readonly MAX_PER_RUN: 300;
|
|
239
223
|
/** The platform refuses an image larger than this, decoded. */
|
|
240
224
|
readonly MAX_BYTES: number;
|
|
225
|
+
/**
|
|
226
|
+
* The `tool` of a frame: a picture taken between steps while Reticle drives a tab, about once a
|
|
227
|
+
* second. Frames share the run's `seq`, so the shots in `seq` order play the run as a film.
|
|
228
|
+
*/
|
|
229
|
+
readonly FRAME_TOOL: "frame";
|
|
241
230
|
};
|
|
242
231
|
/** One step's screenshot as a run artifact records it. `file` is relative to the run's directory. */
|
|
243
232
|
export declare const StepScreenshotSchema: z.ZodObject<{
|
|
244
233
|
file: z.ZodString;
|
|
245
|
-
source: z.
|
|
234
|
+
source: z.ZodEnum<{
|
|
246
235
|
readonly BROWSER: "browser";
|
|
247
236
|
readonly RENDERED: "rendered";
|
|
248
237
|
}>;
|
|
249
238
|
width: z.ZodNumber;
|
|
250
239
|
height: z.ZodNumber;
|
|
251
240
|
sha256: z.ZodString;
|
|
252
|
-
},
|
|
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
|
-
}>;
|
|
241
|
+
}, z.core.$strip>;
|
|
265
242
|
export type StepScreenshot = z.infer<typeof StepScreenshotSchema>;
|
|
266
243
|
/** Every screenshot a run took, in order — including the actions that produced no verdict. */
|
|
267
244
|
export declare const RunScreenshotSchema: z.ZodObject<{
|
|
268
245
|
file: z.ZodString;
|
|
269
|
-
source: z.
|
|
246
|
+
source: z.ZodEnum<{
|
|
270
247
|
readonly BROWSER: "browser";
|
|
271
248
|
readonly RENDERED: "rendered";
|
|
272
249
|
}>;
|
|
273
250
|
width: z.ZodNumber;
|
|
274
251
|
height: z.ZodNumber;
|
|
275
252
|
sha256: z.ZodString;
|
|
276
|
-
} & {
|
|
277
253
|
seq: z.ZodNumber;
|
|
278
254
|
tool: z.ZodString;
|
|
279
|
-
/** The flow step it belongs to, as `<flow>#<step>`, when it was taken during a replay. */
|
|
280
255
|
step: z.ZodOptional<z.ZodString>;
|
|
281
|
-
/** Taken for a call that produced a verdict — what lets the run pair it with its check. */
|
|
282
256
|
verdict: z.ZodOptional<z.ZodBoolean>;
|
|
283
|
-
/** The check this picture is of (see `RunCheck.checkId`), when it could be paired with one. */
|
|
284
257
|
checkId: z.ZodOptional<z.ZodString>;
|
|
285
|
-
/** The journal action it was taken for: how a run pairs it with its check (`RunCheck.actionId`). */
|
|
286
258
|
actionId: z.ZodOptional<z.ZodString>;
|
|
287
|
-
},
|
|
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
|
-
}>;
|
|
259
|
+
}, z.core.$strip>;
|
|
312
260
|
export type RunScreenshot = z.infer<typeof RunScreenshotSchema>;
|
|
313
261
|
/** One step of a replayed flow, as synced: its outcome and the pages it ran on and led to. */
|
|
314
262
|
export declare const RunStepResultSchema: z.ZodObject<{
|
|
@@ -319,64 +267,18 @@ export declare const RunStepResultSchema: z.ZodObject<{
|
|
|
319
267
|
endPage: z.ZodOptional<z.ZodString>;
|
|
320
268
|
consequence: z.ZodOptional<z.ZodString>;
|
|
321
269
|
error: z.ZodOptional<z.ZodString>;
|
|
322
|
-
/** The drift's reason kind, when the step drifted. */
|
|
323
270
|
drift: z.ZodOptional<z.ZodString>;
|
|
324
|
-
/** What the page looked like when this step's outcome was decided. */
|
|
325
271
|
screenshot: z.ZodOptional<z.ZodObject<{
|
|
326
272
|
file: z.ZodString;
|
|
327
|
-
source: z.
|
|
273
|
+
source: z.ZodEnum<{
|
|
328
274
|
readonly BROWSER: "browser";
|
|
329
275
|
readonly RENDERED: "rendered";
|
|
330
276
|
}>;
|
|
331
277
|
width: z.ZodNumber;
|
|
332
278
|
height: z.ZodNumber;
|
|
333
279
|
sha256: z.ZodString;
|
|
334
|
-
},
|
|
335
|
-
|
|
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
|
-
}>>;
|
|
347
|
-
}, "strip", z.ZodTypeAny, {
|
|
348
|
-
ok: boolean;
|
|
349
|
-
step: number;
|
|
350
|
-
anchor: string;
|
|
351
|
-
drift?: string | undefined;
|
|
352
|
-
error?: string | undefined;
|
|
353
|
-
page?: string | undefined;
|
|
354
|
-
endPage?: string | undefined;
|
|
355
|
-
consequence?: string | undefined;
|
|
356
|
-
screenshot?: {
|
|
357
|
-
file: string;
|
|
358
|
-
source: "browser" | "rendered";
|
|
359
|
-
width: number;
|
|
360
|
-
height: number;
|
|
361
|
-
sha256: string;
|
|
362
|
-
} | undefined;
|
|
363
|
-
}, {
|
|
364
|
-
ok: boolean;
|
|
365
|
-
step: number;
|
|
366
|
-
anchor: string;
|
|
367
|
-
drift?: string | undefined;
|
|
368
|
-
error?: string | undefined;
|
|
369
|
-
page?: string | undefined;
|
|
370
|
-
endPage?: string | undefined;
|
|
371
|
-
consequence?: string | undefined;
|
|
372
|
-
screenshot?: {
|
|
373
|
-
file: string;
|
|
374
|
-
source: "browser" | "rendered";
|
|
375
|
-
width: number;
|
|
376
|
-
height: number;
|
|
377
|
-
sha256: string;
|
|
378
|
-
} | undefined;
|
|
379
|
-
}>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
}, z.core.$strip>;
|
|
380
282
|
export type RunStepResult = z.infer<typeof RunStepResultSchema>;
|
|
381
283
|
/**
|
|
382
284
|
* The flow a run replayed, as recorded: enough to replay it again somewhere else.
|
|
@@ -386,20 +288,13 @@ export type RunStepResult = z.infer<typeof RunStepResultSchema>;
|
|
|
386
288
|
*/
|
|
387
289
|
export declare const RunFlowRecordingSchema: z.ZodObject<{
|
|
388
290
|
startPath: z.ZodOptional<z.ZodString>;
|
|
389
|
-
steps: z.ZodArray<z.ZodUnknown
|
|
390
|
-
},
|
|
391
|
-
steps: unknown[];
|
|
392
|
-
startPath?: string | undefined;
|
|
393
|
-
}, {
|
|
394
|
-
steps: unknown[];
|
|
395
|
-
startPath?: string | undefined;
|
|
396
|
-
}>;
|
|
291
|
+
steps: z.ZodArray<z.ZodUnknown>;
|
|
292
|
+
}, z.core.$strip>;
|
|
397
293
|
/** A flow that was replayed as part of the run. */
|
|
398
294
|
export declare const RunFlowResultSchema: z.ZodObject<{
|
|
399
295
|
name: z.ZodString;
|
|
400
|
-
/** The saved flow this replayed copy was generated from — see the flow file's `template`. */
|
|
401
296
|
template: z.ZodOptional<z.ZodString>;
|
|
402
|
-
status: z.
|
|
297
|
+
status: z.ZodEnum<{
|
|
403
298
|
readonly PASS: "pass";
|
|
404
299
|
readonly FAIL: "fail";
|
|
405
300
|
readonly SKIPPED: "skipped";
|
|
@@ -412,18 +307,9 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
412
307
|
from: z.ZodString;
|
|
413
308
|
to: z.ZodString;
|
|
414
309
|
consequenceVerified: z.ZodBoolean;
|
|
415
|
-
},
|
|
416
|
-
from: string;
|
|
417
|
-
to: string;
|
|
418
|
-
consequenceVerified: boolean;
|
|
419
|
-
}, {
|
|
420
|
-
from: string;
|
|
421
|
-
to: string;
|
|
422
|
-
consequenceVerified: boolean;
|
|
423
|
-
}>>;
|
|
310
|
+
}, z.core.$strip>>;
|
|
424
311
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
425
312
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
426
|
-
/** Each step's result and page — see RUN_STEP_RESULTS_MAX. */
|
|
427
313
|
stepResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
428
314
|
step: z.ZodNumber;
|
|
429
315
|
anchor: z.ZodString;
|
|
@@ -432,161 +318,28 @@ export declare const RunFlowResultSchema: z.ZodObject<{
|
|
|
432
318
|
endPage: z.ZodOptional<z.ZodString>;
|
|
433
319
|
consequence: z.ZodOptional<z.ZodString>;
|
|
434
320
|
error: z.ZodOptional<z.ZodString>;
|
|
435
|
-
/** The drift's reason kind, when the step drifted. */
|
|
436
321
|
drift: z.ZodOptional<z.ZodString>;
|
|
437
|
-
/** What the page looked like when this step's outcome was decided. */
|
|
438
322
|
screenshot: z.ZodOptional<z.ZodObject<{
|
|
439
323
|
file: z.ZodString;
|
|
440
|
-
source: z.
|
|
324
|
+
source: z.ZodEnum<{
|
|
441
325
|
readonly BROWSER: "browser";
|
|
442
326
|
readonly RENDERED: "rendered";
|
|
443
327
|
}>;
|
|
444
328
|
width: z.ZodNumber;
|
|
445
329
|
height: z.ZodNumber;
|
|
446
330
|
sha256: z.ZodString;
|
|
447
|
-
},
|
|
448
|
-
|
|
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
|
-
}>>;
|
|
460
|
-
}, "strip", z.ZodTypeAny, {
|
|
461
|
-
ok: boolean;
|
|
462
|
-
step: number;
|
|
463
|
-
anchor: string;
|
|
464
|
-
drift?: string | undefined;
|
|
465
|
-
error?: string | undefined;
|
|
466
|
-
page?: string | undefined;
|
|
467
|
-
endPage?: string | undefined;
|
|
468
|
-
consequence?: string | undefined;
|
|
469
|
-
screenshot?: {
|
|
470
|
-
file: string;
|
|
471
|
-
source: "browser" | "rendered";
|
|
472
|
-
width: number;
|
|
473
|
-
height: number;
|
|
474
|
-
sha256: string;
|
|
475
|
-
} | undefined;
|
|
476
|
-
}, {
|
|
477
|
-
ok: boolean;
|
|
478
|
-
step: number;
|
|
479
|
-
anchor: string;
|
|
480
|
-
drift?: string | undefined;
|
|
481
|
-
error?: string | undefined;
|
|
482
|
-
page?: string | undefined;
|
|
483
|
-
endPage?: string | undefined;
|
|
484
|
-
consequence?: string | undefined;
|
|
485
|
-
screenshot?: {
|
|
486
|
-
file: string;
|
|
487
|
-
source: "browser" | "rendered";
|
|
488
|
-
width: number;
|
|
489
|
-
height: number;
|
|
490
|
-
sha256: string;
|
|
491
|
-
} | undefined;
|
|
492
|
-
}>, "many">>;
|
|
493
|
-
/** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
|
|
331
|
+
}, z.core.$strip>>;
|
|
332
|
+
}, z.core.$strip>>>;
|
|
494
333
|
recording: z.ZodOptional<z.ZodObject<{
|
|
495
334
|
startPath: z.ZodOptional<z.ZodString>;
|
|
496
|
-
steps: z.ZodArray<z.ZodUnknown
|
|
497
|
-
},
|
|
498
|
-
steps: unknown[];
|
|
499
|
-
startPath?: string | undefined;
|
|
500
|
-
}, {
|
|
501
|
-
steps: unknown[];
|
|
502
|
-
startPath?: string | undefined;
|
|
503
|
-
}>>;
|
|
504
|
-
/** True when the recording was too large to carry. */
|
|
335
|
+
steps: z.ZodArray<z.ZodUnknown>;
|
|
336
|
+
}, z.core.$strip>>;
|
|
505
337
|
recordingOmitted: z.ZodOptional<z.ZodBoolean>;
|
|
506
|
-
},
|
|
507
|
-
status: "pass" | "fail" | "healed" | "skipped";
|
|
508
|
-
steps: number;
|
|
509
|
-
name: string;
|
|
510
|
-
durationMs: number;
|
|
511
|
-
recording?: {
|
|
512
|
-
steps: unknown[];
|
|
513
|
-
startPath?: string | undefined;
|
|
514
|
-
} | undefined;
|
|
515
|
-
healed?: {
|
|
516
|
-
from: string;
|
|
517
|
-
to: string;
|
|
518
|
-
consequenceVerified: boolean;
|
|
519
|
-
} | undefined;
|
|
520
|
-
template?: string | undefined;
|
|
521
|
-
oracle?: string | undefined;
|
|
522
|
-
evidenceRef?: string | undefined;
|
|
523
|
-
failureReason?: string | undefined;
|
|
524
|
-
stepResults?: {
|
|
525
|
-
ok: boolean;
|
|
526
|
-
step: number;
|
|
527
|
-
anchor: string;
|
|
528
|
-
drift?: string | undefined;
|
|
529
|
-
error?: string | undefined;
|
|
530
|
-
page?: string | undefined;
|
|
531
|
-
endPage?: string | undefined;
|
|
532
|
-
consequence?: string | undefined;
|
|
533
|
-
screenshot?: {
|
|
534
|
-
file: string;
|
|
535
|
-
source: "browser" | "rendered";
|
|
536
|
-
width: number;
|
|
537
|
-
height: number;
|
|
538
|
-
sha256: string;
|
|
539
|
-
} | undefined;
|
|
540
|
-
}[] | undefined;
|
|
541
|
-
recordingOmitted?: boolean | undefined;
|
|
542
|
-
}, {
|
|
543
|
-
status: "pass" | "fail" | "healed" | "skipped";
|
|
544
|
-
steps: number;
|
|
545
|
-
name: string;
|
|
546
|
-
durationMs: number;
|
|
547
|
-
recording?: {
|
|
548
|
-
steps: unknown[];
|
|
549
|
-
startPath?: string | undefined;
|
|
550
|
-
} | undefined;
|
|
551
|
-
healed?: {
|
|
552
|
-
from: string;
|
|
553
|
-
to: string;
|
|
554
|
-
consequenceVerified: boolean;
|
|
555
|
-
} | undefined;
|
|
556
|
-
template?: string | undefined;
|
|
557
|
-
oracle?: string | undefined;
|
|
558
|
-
evidenceRef?: string | undefined;
|
|
559
|
-
failureReason?: string | undefined;
|
|
560
|
-
stepResults?: {
|
|
561
|
-
ok: boolean;
|
|
562
|
-
step: number;
|
|
563
|
-
anchor: string;
|
|
564
|
-
drift?: string | undefined;
|
|
565
|
-
error?: string | undefined;
|
|
566
|
-
page?: string | undefined;
|
|
567
|
-
endPage?: string | undefined;
|
|
568
|
-
consequence?: string | undefined;
|
|
569
|
-
screenshot?: {
|
|
570
|
-
file: string;
|
|
571
|
-
source: "browser" | "rendered";
|
|
572
|
-
width: number;
|
|
573
|
-
height: number;
|
|
574
|
-
sha256: string;
|
|
575
|
-
} | undefined;
|
|
576
|
-
}[] | undefined;
|
|
577
|
-
recordingOmitted?: boolean | undefined;
|
|
578
|
-
}>;
|
|
338
|
+
}, z.core.$strip>;
|
|
579
339
|
export type RunFlowResult = z.infer<typeof RunFlowResultSchema>;
|
|
580
340
|
/** A standalone assertion not tied to a flow. `evidence` is opaque (narrowed per kind by the caller). */
|
|
581
341
|
export declare const RunCheckSchema: z.ZodObject<{
|
|
582
|
-
|
|
583
|
-
* Which source of truth answering this claim required.
|
|
584
|
-
*
|
|
585
|
-
* Optional, because a check folded from a journal written before the kind was recorded has none,
|
|
586
|
-
* and the only alternatives are refusing the whole run or filling in a kind nobody observed. An
|
|
587
|
-
* absent field says nobody wrote it down; a present one is what the predicate actually read.
|
|
588
|
-
*/
|
|
589
|
-
kind: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<{
|
|
342
|
+
kind: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
590
343
|
readonly ELEMENT: "element";
|
|
591
344
|
readonly TEXT: "text";
|
|
592
345
|
readonly SIGNAL: "signal";
|
|
@@ -600,140 +353,42 @@ export declare const RunCheckSchema: z.ZodObject<{
|
|
|
600
353
|
readonly ALL_OF: "allOf";
|
|
601
354
|
readonly ANY_OF: "anyOf";
|
|
602
355
|
readonly NOT: "not";
|
|
603
|
-
}>>,
|
|
356
|
+
}>>, unknown>;
|
|
604
357
|
predicate: z.ZodString;
|
|
605
|
-
status: z.
|
|
358
|
+
status: z.ZodPreprocess<z.ZodEnum<{
|
|
606
359
|
readonly YES: "yes";
|
|
607
360
|
readonly NO: "no";
|
|
608
361
|
readonly UNKNOWN: "unknown";
|
|
609
362
|
readonly NO_FAULT: "no-fault";
|
|
610
|
-
}>,
|
|
363
|
+
}>, unknown>;
|
|
611
364
|
evidence: z.ZodOptional<z.ZodUnknown>;
|
|
612
|
-
/**
|
|
613
|
-
* Was this claim written down BEFORE the action, or after it?
|
|
614
|
-
*
|
|
615
|
-
* The difference between a check and a rationalisation. Afterwards, anything that happened can be
|
|
616
|
-
* described as what you meant; a claim made in advance can only be met or missed.
|
|
617
|
-
*
|
|
618
|
-
* Optional, and absence is not `false`. `false` says the claim came afterwards. Absent says nobody
|
|
619
|
-
* recorded which, and those are different facts about the evidence.
|
|
620
|
-
*/
|
|
621
365
|
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
366
|
expected: z.ZodOptional<z.ZodString>;
|
|
628
367
|
observed: z.ZodOptional<z.ZodString>;
|
|
629
|
-
/**
|
|
630
|
-
* What kind of evidence bought this answer.
|
|
631
|
-
*
|
|
632
|
-
* A green paid for with "something matching was on screen" is not the same green as one paid for
|
|
633
|
-
* with "the request went out", and a report that flattens them lets the cheap one pass for the
|
|
634
|
-
* dear one. Free-form because the grades belong to whoever produced the verdict.
|
|
635
|
-
*/
|
|
636
368
|
grade: z.ZodOptional<z.ZodString>;
|
|
637
|
-
|
|
638
|
-
* What could not be seen while this was being checked.
|
|
639
|
-
*
|
|
640
|
-
* The property with no prior art: every other test report in existence is silent about its own
|
|
641
|
-
* blind spots. An empty list means nothing was hidden; absence means nobody looked.
|
|
642
|
-
*/
|
|
643
|
-
couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
644
|
-
/**
|
|
645
|
-
* Why the verdict came out this way, in the engine's vocabulary.
|
|
646
|
-
*
|
|
647
|
-
* Carried so a reader -- and the fold that looks for late answers -- can tell an outcome that
|
|
648
|
-
* has not arrived from a capture that could not be read. Both are `unknown`, and only the
|
|
649
|
-
* first is a question that waiting can settle.
|
|
650
|
-
*/
|
|
369
|
+
couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
651
370
|
reason: z.ZodOptional<z.ZodString>;
|
|
652
|
-
/** This check's own name, so a later verdict can cite it. See revision.ts. */
|
|
653
371
|
checkId: z.ZodOptional<z.ZodString>;
|
|
654
|
-
/** The journal action that produced it, kept on this machine to pair it with its screenshot. */
|
|
655
372
|
actionId: z.ZodOptional<z.ZodString>;
|
|
656
|
-
/** The declared intent this check was taken for, by id: what it proves, named rather than timed. */
|
|
657
373
|
intent: z.ZodOptional<z.ZodString>;
|
|
658
|
-
|
|
374
|
+
intentDerived: z.ZodOptional<z.ZodBoolean>;
|
|
375
|
+
failedPart: z.ZodOptional<z.ZodNumber>;
|
|
659
376
|
screenshot: z.ZodOptional<z.ZodObject<{
|
|
660
377
|
file: z.ZodString;
|
|
661
|
-
source: z.
|
|
378
|
+
source: z.ZodEnum<{
|
|
662
379
|
readonly BROWSER: "browser";
|
|
663
380
|
readonly RENDERED: "rendered";
|
|
664
381
|
}>;
|
|
665
382
|
width: z.ZodNumber;
|
|
666
383
|
height: z.ZodNumber;
|
|
667
384
|
sha256: z.ZodString;
|
|
668
|
-
},
|
|
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
|
-
}>>;
|
|
681
|
-
/**
|
|
682
|
-
* The earlier check this one corrects, as `<runId>#<checkId>`.
|
|
683
|
-
*
|
|
684
|
-
* Present only on a correction, and the check it names is NOT edited: both stand, so a reader
|
|
685
|
-
* can see that the first answer was given, when it changed, and why.
|
|
686
|
-
*/
|
|
385
|
+
}, z.core.$strip>>;
|
|
687
386
|
supersedes: z.ZodOptional<z.ZodString>;
|
|
688
|
-
},
|
|
689
|
-
status: "yes" | "no" | "unknown" | "no-fault";
|
|
690
|
-
predicate: string;
|
|
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;
|
|
703
|
-
evidence?: unknown;
|
|
704
|
-
declaredBeforeActing?: boolean | undefined;
|
|
705
|
-
observed?: string | undefined;
|
|
706
|
-
grade?: string | undefined;
|
|
707
|
-
couldNotSee?: string[] | undefined;
|
|
708
|
-
reason?: string | undefined;
|
|
709
|
-
supersedes?: string | undefined;
|
|
710
|
-
}, {
|
|
711
|
-
predicate: string;
|
|
712
|
-
kind?: unknown;
|
|
713
|
-
intent?: string | undefined;
|
|
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;
|
|
725
|
-
evidence?: unknown;
|
|
726
|
-
declaredBeforeActing?: boolean | undefined;
|
|
727
|
-
observed?: string | undefined;
|
|
728
|
-
grade?: string | undefined;
|
|
729
|
-
couldNotSee?: string[] | undefined;
|
|
730
|
-
reason?: string | undefined;
|
|
731
|
-
supersedes?: string | undefined;
|
|
732
|
-
}>;
|
|
387
|
+
}, z.core.$strip>;
|
|
733
388
|
export type RunCheck = z.infer<typeof RunCheckSchema>;
|
|
734
389
|
/** A flagged risk. `gated` = a policy gate tripped on this surface. */
|
|
735
390
|
export declare const RunRiskSchema: z.ZodObject<{
|
|
736
|
-
surface: z.
|
|
391
|
+
surface: z.ZodEnum<{
|
|
737
392
|
readonly AUTH: "auth";
|
|
738
393
|
readonly PAYMENT: "payment";
|
|
739
394
|
readonly DB: "db";
|
|
@@ -743,7 +398,7 @@ export declare const RunRiskSchema: z.ZodObject<{
|
|
|
743
398
|
readonly DESTRUCTIVE: "destructive";
|
|
744
399
|
readonly EXTERNAL: "external";
|
|
745
400
|
}>;
|
|
746
|
-
severity: z.
|
|
401
|
+
severity: z.ZodEnum<{
|
|
747
402
|
readonly LOW: "low";
|
|
748
403
|
readonly MEDIUM: "medium";
|
|
749
404
|
readonly HIGH: "high";
|
|
@@ -754,37 +409,9 @@ export declare const RunRiskSchema: z.ZodObject<{
|
|
|
754
409
|
file: z.ZodOptional<z.ZodString>;
|
|
755
410
|
line: z.ZodOptional<z.ZodNumber>;
|
|
756
411
|
network: z.ZodOptional<z.ZodString>;
|
|
757
|
-
},
|
|
758
|
-
network?: string | undefined;
|
|
759
|
-
file?: string | undefined;
|
|
760
|
-
line?: number | undefined;
|
|
761
|
-
}, {
|
|
762
|
-
network?: string | undefined;
|
|
763
|
-
file?: string | undefined;
|
|
764
|
-
line?: number | undefined;
|
|
765
|
-
}>>;
|
|
412
|
+
}, z.core.$strip>>;
|
|
766
413
|
gated: z.ZodDefault<z.ZodBoolean>;
|
|
767
|
-
},
|
|
768
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
769
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
770
|
-
detail: string;
|
|
771
|
-
gated: boolean;
|
|
772
|
-
evidence?: {
|
|
773
|
-
network?: string | undefined;
|
|
774
|
-
file?: string | undefined;
|
|
775
|
-
line?: number | undefined;
|
|
776
|
-
} | undefined;
|
|
777
|
-
}, {
|
|
778
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
779
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
780
|
-
detail: string;
|
|
781
|
-
evidence?: {
|
|
782
|
-
network?: string | undefined;
|
|
783
|
-
file?: string | undefined;
|
|
784
|
-
line?: number | undefined;
|
|
785
|
-
} | undefined;
|
|
786
|
-
gated?: boolean | undefined;
|
|
787
|
-
}>;
|
|
414
|
+
}, z.core.$strip>;
|
|
788
415
|
export type RunRisk = z.infer<typeof RunRiskSchema>;
|
|
789
416
|
/** The cross-layer evidence behind the verdict. Raw bodies / full state appear only under DEV profile. */
|
|
790
417
|
export declare const VerificationEvidenceSchema: z.ZodObject<{
|
|
@@ -792,112 +419,26 @@ export declare const VerificationEvidenceSchema: z.ZodObject<{
|
|
|
792
419
|
level: z.ZodString;
|
|
793
420
|
message: z.ZodString;
|
|
794
421
|
at: z.ZodNumber;
|
|
795
|
-
},
|
|
796
|
-
at: number;
|
|
797
|
-
message: string;
|
|
798
|
-
level: string;
|
|
799
|
-
}, {
|
|
800
|
-
at: number;
|
|
801
|
-
message: string;
|
|
802
|
-
level: string;
|
|
803
|
-
}>, "many">>;
|
|
422
|
+
}, z.core.$strip>>>;
|
|
804
423
|
networkAnomalies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
805
424
|
method: z.ZodString;
|
|
806
425
|
url: z.ZodString;
|
|
807
426
|
status: z.ZodOptional<z.ZodNumber>;
|
|
808
427
|
issue: z.ZodString;
|
|
809
|
-
},
|
|
810
|
-
method: string;
|
|
811
|
-
url: string;
|
|
812
|
-
issue: string;
|
|
813
|
-
status?: number | undefined;
|
|
814
|
-
}, {
|
|
815
|
-
method: string;
|
|
816
|
-
url: string;
|
|
817
|
-
issue: string;
|
|
818
|
-
status?: number | undefined;
|
|
819
|
-
}>, "many">>;
|
|
428
|
+
}, z.core.$strip>>>;
|
|
820
429
|
stateAssertions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
821
430
|
store: z.ZodString;
|
|
822
431
|
path: z.ZodString;
|
|
823
|
-
expected: z.ZodUnknown
|
|
824
|
-
actual: z.ZodUnknown
|
|
432
|
+
expected: z.ZodOptional<z.ZodUnknown>;
|
|
433
|
+
actual: z.ZodOptional<z.ZodUnknown>;
|
|
825
434
|
ok: z.ZodBoolean;
|
|
826
|
-
},
|
|
827
|
-
ok: boolean;
|
|
828
|
-
path: string;
|
|
829
|
-
store: string;
|
|
830
|
-
expected?: unknown;
|
|
831
|
-
actual?: unknown;
|
|
832
|
-
}, {
|
|
833
|
-
ok: boolean;
|
|
834
|
-
path: string;
|
|
835
|
-
store: string;
|
|
836
|
-
expected?: unknown;
|
|
837
|
-
actual?: unknown;
|
|
838
|
-
}>, "many">>;
|
|
435
|
+
}, z.core.$strip>>>;
|
|
839
436
|
timeline: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
840
437
|
at: z.ZodNumber;
|
|
841
438
|
kind: z.ZodString;
|
|
842
439
|
summary: z.ZodString;
|
|
843
|
-
},
|
|
844
|
-
|
|
845
|
-
at: number;
|
|
846
|
-
summary: string;
|
|
847
|
-
}, {
|
|
848
|
-
kind: string;
|
|
849
|
-
at: number;
|
|
850
|
-
summary: string;
|
|
851
|
-
}>, "many">>;
|
|
852
|
-
}, "strip", z.ZodTypeAny, {
|
|
853
|
-
consoleErrors: {
|
|
854
|
-
at: number;
|
|
855
|
-
message: string;
|
|
856
|
-
level: string;
|
|
857
|
-
}[];
|
|
858
|
-
networkAnomalies: {
|
|
859
|
-
method: string;
|
|
860
|
-
url: string;
|
|
861
|
-
issue: string;
|
|
862
|
-
status?: number | undefined;
|
|
863
|
-
}[];
|
|
864
|
-
stateAssertions: {
|
|
865
|
-
ok: boolean;
|
|
866
|
-
path: string;
|
|
867
|
-
store: string;
|
|
868
|
-
expected?: unknown;
|
|
869
|
-
actual?: unknown;
|
|
870
|
-
}[];
|
|
871
|
-
timeline: {
|
|
872
|
-
kind: string;
|
|
873
|
-
at: number;
|
|
874
|
-
summary: string;
|
|
875
|
-
}[];
|
|
876
|
-
}, {
|
|
877
|
-
consoleErrors?: {
|
|
878
|
-
at: number;
|
|
879
|
-
message: string;
|
|
880
|
-
level: string;
|
|
881
|
-
}[] | undefined;
|
|
882
|
-
networkAnomalies?: {
|
|
883
|
-
method: string;
|
|
884
|
-
url: string;
|
|
885
|
-
issue: string;
|
|
886
|
-
status?: number | undefined;
|
|
887
|
-
}[] | undefined;
|
|
888
|
-
stateAssertions?: {
|
|
889
|
-
ok: boolean;
|
|
890
|
-
path: string;
|
|
891
|
-
store: string;
|
|
892
|
-
expected?: unknown;
|
|
893
|
-
actual?: unknown;
|
|
894
|
-
}[] | undefined;
|
|
895
|
-
timeline?: {
|
|
896
|
-
kind: string;
|
|
897
|
-
at: number;
|
|
898
|
-
summary: string;
|
|
899
|
-
}[] | undefined;
|
|
900
|
-
}>;
|
|
440
|
+
}, z.core.$strip>>>;
|
|
441
|
+
}, z.core.$strip>;
|
|
901
442
|
/** One paste-ready fix instruction for the host's coding agent. */
|
|
902
443
|
export declare const RepairPacketSchema: z.ZodObject<{
|
|
903
444
|
flow: z.ZodOptional<z.ZodString>;
|
|
@@ -908,43 +449,13 @@ export declare const RepairPacketSchema: z.ZodObject<{
|
|
|
908
449
|
file: z.ZodString;
|
|
909
450
|
line: z.ZodOptional<z.ZodNumber>;
|
|
910
451
|
component: z.ZodOptional<z.ZodString>;
|
|
911
|
-
},
|
|
912
|
-
file: string;
|
|
913
|
-
component?: string | undefined;
|
|
914
|
-
line?: number | undefined;
|
|
915
|
-
}, {
|
|
916
|
-
file: string;
|
|
917
|
-
component?: string | undefined;
|
|
918
|
-
line?: number | undefined;
|
|
919
|
-
}>>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
920
453
|
suggestedPrompt: z.ZodString;
|
|
921
|
-
},
|
|
922
|
-
expected: string;
|
|
923
|
-
actual: string;
|
|
924
|
-
suggestedPrompt: string;
|
|
925
|
-
step?: number | undefined;
|
|
926
|
-
flow?: string | undefined;
|
|
927
|
-
sourceLocation?: {
|
|
928
|
-
file: string;
|
|
929
|
-
component?: string | undefined;
|
|
930
|
-
line?: number | undefined;
|
|
931
|
-
} | undefined;
|
|
932
|
-
}, {
|
|
933
|
-
expected: string;
|
|
934
|
-
actual: string;
|
|
935
|
-
suggestedPrompt: string;
|
|
936
|
-
step?: number | undefined;
|
|
937
|
-
flow?: string | undefined;
|
|
938
|
-
sourceLocation?: {
|
|
939
|
-
file: string;
|
|
940
|
-
component?: string | undefined;
|
|
941
|
-
line?: number | undefined;
|
|
942
|
-
} | undefined;
|
|
943
|
-
}>;
|
|
454
|
+
}, z.core.$strip>;
|
|
944
455
|
export type RepairPacket = z.infer<typeof RepairPacketSchema>;
|
|
945
456
|
/** The verdict block — what a deploy gate reads. */
|
|
946
457
|
export declare const RunVerdictSchema: z.ZodObject<{
|
|
947
|
-
status: z.
|
|
458
|
+
status: z.ZodEnum<{
|
|
948
459
|
readonly PASS: "pass";
|
|
949
460
|
readonly FAIL: "fail";
|
|
950
461
|
readonly PARTIAL: "partial";
|
|
@@ -959,120 +470,67 @@ export declare const RunVerdictSchema: z.ZodObject<{
|
|
|
959
470
|
*/
|
|
960
471
|
readonly UNKNOWN: "unknown";
|
|
961
472
|
}>;
|
|
962
|
-
reasons: z.ZodDefault<z.ZodArray<z.ZodString
|
|
963
|
-
confidence: z.
|
|
473
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
474
|
+
confidence: z.ZodEnum<{
|
|
964
475
|
readonly HIGH: "high";
|
|
965
476
|
readonly MEDIUM: "medium";
|
|
966
477
|
readonly LOW: "low";
|
|
967
478
|
}>;
|
|
968
479
|
blockingRisks: z.ZodDefault<z.ZodNumber>;
|
|
969
|
-
/**
|
|
970
|
-
* Which check this verdict is about, so a later one can say it corrects this.
|
|
971
|
-
*
|
|
972
|
-
* Optional because a run's overall verdict is not about one check. A verdict with no check named
|
|
973
|
-
* cannot be cited, and therefore cannot be corrected -- see revision.ts.
|
|
974
|
-
*/
|
|
975
480
|
checkId: z.ZodOptional<z.ZodString>;
|
|
976
|
-
/**
|
|
977
|
-
* The verdict this one replaces, written as `<runId>#<checkId>`.
|
|
978
|
-
*
|
|
979
|
-
* Present only on a correction. The verdict it names is NOT edited: it stays exactly as it was
|
|
980
|
-
* given, and this is a second, later answer that cites it. Rewriting the first in place would
|
|
981
|
-
* erase the fact that it was ever given, and "we always knew" is the shape of the problem this
|
|
982
|
-
* whole system exists to prevent.
|
|
983
|
-
*/
|
|
984
481
|
supersedes: z.ZodOptional<z.ZodString>;
|
|
985
|
-
},
|
|
986
|
-
status: "pass" | "fail" | "unknown" | "partial";
|
|
987
|
-
reasons: string[];
|
|
988
|
-
confidence: "low" | "medium" | "high";
|
|
989
|
-
blockingRisks: number;
|
|
990
|
-
checkId?: string | undefined;
|
|
991
|
-
supersedes?: string | undefined;
|
|
992
|
-
}, {
|
|
993
|
-
status: "pass" | "fail" | "unknown" | "partial";
|
|
994
|
-
confidence: "low" | "medium" | "high";
|
|
995
|
-
checkId?: string | undefined;
|
|
996
|
-
supersedes?: string | undefined;
|
|
997
|
-
reasons?: string[] | undefined;
|
|
998
|
-
blockingRisks?: number | undefined;
|
|
999
|
-
}>;
|
|
482
|
+
}, z.core.$strip>;
|
|
1000
483
|
export type RunVerdict = z.infer<typeof RunVerdictSchema>;
|
|
1001
484
|
/** Optional tamper-evidence signature over the run (for audit; populated later). */
|
|
1002
485
|
export declare const RunSignatureSchema: z.ZodObject<{
|
|
1003
486
|
alg: z.ZodString;
|
|
1004
487
|
value: z.ZodString;
|
|
1005
488
|
signedAt: z.ZodNumber;
|
|
1006
|
-
},
|
|
1007
|
-
value: string;
|
|
1008
|
-
alg: string;
|
|
1009
|
-
signedAt: number;
|
|
1010
|
-
}, {
|
|
1011
|
-
value: string;
|
|
1012
|
-
alg: string;
|
|
1013
|
-
signedAt: number;
|
|
1014
|
-
}>;
|
|
489
|
+
}, z.core.$strip>;
|
|
1015
490
|
/**
|
|
1016
491
|
* The top-level verification-run artifact. Stable contract — additive changes only within a
|
|
1017
492
|
* RUN_FILE_VERSION; a breaking change bumps it. Arrays default to empty so a minimal run (e.g. a
|
|
1018
493
|
* single smoke flow) still validates. Version 1 files are still read; see the note on the constant.
|
|
1019
494
|
*/
|
|
1020
495
|
export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
1021
|
-
schemaVersion: z.ZodUnion<[z.ZodLiteral<3>, z.ZodLiteral<2>, z.ZodLiteral<1>]>;
|
|
1022
|
-
runId: z.ZodBranded<z.ZodString, "RunId">;
|
|
496
|
+
schemaVersion: z.ZodUnion<readonly [z.ZodLiteral<3>, z.ZodLiteral<2>, z.ZodLiteral<1>]>;
|
|
497
|
+
runId: z.core.$ZodBranded<z.ZodString, "RunId", "out">;
|
|
1023
498
|
createdAt: z.ZodNumber;
|
|
1024
499
|
durationMs: z.ZodNumber;
|
|
1025
|
-
profile: z.
|
|
500
|
+
profile: z.ZodEnum<{
|
|
1026
501
|
readonly DEV: "dev";
|
|
1027
502
|
readonly PROD_PREVIEW: "prod-preview";
|
|
1028
503
|
}>;
|
|
1029
504
|
project: z.ZodObject<{
|
|
1030
505
|
name: z.ZodString;
|
|
1031
|
-
framework: z.
|
|
506
|
+
framework: z.ZodEnum<{
|
|
1032
507
|
readonly REACT: "react";
|
|
1033
508
|
readonly NEXT: "next";
|
|
1034
509
|
readonly VITE: "vite";
|
|
1035
510
|
readonly OTHER: "other";
|
|
1036
511
|
}>;
|
|
1037
512
|
commit: z.ZodOptional<z.ZodString>;
|
|
1038
|
-
|
|
513
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
514
|
+
env: z.ZodOptional<z.ZodEnum<{
|
|
1039
515
|
readonly PREVIEW: "preview";
|
|
1040
516
|
readonly CI: "ci";
|
|
1041
517
|
readonly LOCAL: "local";
|
|
1042
518
|
}>>;
|
|
1043
519
|
previewUrl: z.ZodOptional<z.ZodString>;
|
|
1044
|
-
},
|
|
1045
|
-
name: string;
|
|
1046
|
-
framework: "other" | "react" | "next" | "vite";
|
|
1047
|
-
commit?: string | undefined;
|
|
1048
|
-
env?: "ci" | "preview" | "local" | undefined;
|
|
1049
|
-
previewUrl?: string | undefined;
|
|
1050
|
-
}, {
|
|
1051
|
-
name: string;
|
|
1052
|
-
framework: "other" | "react" | "next" | "vite";
|
|
1053
|
-
commit?: string | undefined;
|
|
1054
|
-
env?: "ci" | "preview" | "local" | undefined;
|
|
1055
|
-
previewUrl?: string | undefined;
|
|
1056
|
-
}>;
|
|
520
|
+
}, z.core.$strip>;
|
|
1057
521
|
agent: z.ZodObject<{
|
|
1058
522
|
id: z.ZodString;
|
|
1059
|
-
kind: z.
|
|
523
|
+
kind: z.ZodEnum<{
|
|
1060
524
|
readonly CODING_AGENT: "coding-agent";
|
|
1061
525
|
readonly OEM_PIPELINE: "oem-pipeline";
|
|
1062
526
|
readonly HUMAN: "human";
|
|
1063
527
|
}>;
|
|
1064
528
|
model: z.ZodOptional<z.ZodString>;
|
|
1065
|
-
},
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
model?: string | undefined;
|
|
1069
|
-
}, {
|
|
1070
|
-
kind: "coding-agent" | "oem-pipeline" | "human";
|
|
1071
|
-
id: string;
|
|
1072
|
-
model?: string | undefined;
|
|
1073
|
-
}>;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
episodeId: z.ZodOptional<z.ZodString>;
|
|
531
|
+
agentSession: z.ZodOptional<z.ZodString>;
|
|
1074
532
|
trigger: z.ZodObject<{
|
|
1075
|
-
kind: z.
|
|
533
|
+
kind: z.ZodEnum<{
|
|
1076
534
|
readonly EDIT: "edit";
|
|
1077
535
|
readonly CI: "ci";
|
|
1078
536
|
readonly MANUAL: "manual";
|
|
@@ -1080,39 +538,10 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1080
538
|
}>;
|
|
1081
539
|
diffRef: z.ZodOptional<z.ZodString>;
|
|
1082
540
|
note: z.ZodOptional<z.ZodString>;
|
|
1083
|
-
},
|
|
1084
|
-
kind: "manual" | "edit" | "ci" | "oem";
|
|
1085
|
-
diffRef?: string | undefined;
|
|
1086
|
-
note?: string | undefined;
|
|
1087
|
-
}, {
|
|
1088
|
-
kind: "manual" | "edit" | "ci" | "oem";
|
|
1089
|
-
diffRef?: string | undefined;
|
|
1090
|
-
note?: string | undefined;
|
|
1091
|
-
}>;
|
|
1092
|
-
/**
|
|
1093
|
-
* Which round of source edits this evidence belongs to.
|
|
1094
|
-
*
|
|
1095
|
-
* Evidence gathered before the change under test is true about the OLD code. Reporting it as true
|
|
1096
|
-
* about the new code is a false pass, and it is the kind nobody notices because everything looks
|
|
1097
|
-
* green. Absent when the run had no way to know.
|
|
1098
|
-
*/
|
|
541
|
+
}, z.core.$strip>;
|
|
1099
542
|
editEpoch: z.ZodOptional<z.ZodNumber>;
|
|
1100
|
-
/**
|
|
1101
|
-
* What was verified, in the protocol's own vocabulary.
|
|
1102
|
-
*
|
|
1103
|
-
* The artifact recorded the project, the agent, the trigger and the edit round, and never what
|
|
1104
|
-
* KIND of thing was on the other end -- so a run against a Tauri desktop app and one against a
|
|
1105
|
-
* web page were indistinguishable to every reader of this file. `surface` is the field that
|
|
1106
|
-
* separates them, and `instance` is the one that says which document the evidence belongs to,
|
|
1107
|
-
* which is the difference between evidence about this page and evidence that survived a
|
|
1108
|
-
* navigation.
|
|
1109
|
-
*
|
|
1110
|
-
* `SubjectRef` is the specification's, imported rather than restated. Optional because a run
|
|
1111
|
-
* assembled without a live session -- in CI, from flows alone -- genuinely does not know, and
|
|
1112
|
-
* an invented subject is worse than an absent one.
|
|
1113
|
-
*/
|
|
1114
543
|
subject: z.ZodOptional<z.ZodObject<{
|
|
1115
|
-
surface: z.ZodUnion<[z.
|
|
544
|
+
surface: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1116
545
|
readonly WEB: "web";
|
|
1117
546
|
readonly DESKTOP: "desktop";
|
|
1118
547
|
readonly MOBILE: "mobile";
|
|
@@ -1124,33 +553,16 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1124
553
|
epoch: z.ZodOptional<z.ZodNumber>;
|
|
1125
554
|
locator: z.ZodOptional<z.ZodString>;
|
|
1126
555
|
revision: z.ZodOptional<z.ZodString>;
|
|
1127
|
-
},
|
|
1128
|
-
surface: string;
|
|
1129
|
-
instance: string;
|
|
1130
|
-
epoch?: number | undefined;
|
|
1131
|
-
locator?: string | undefined;
|
|
1132
|
-
revision?: string | undefined;
|
|
1133
|
-
}, {
|
|
1134
|
-
surface: string;
|
|
1135
|
-
instance: string;
|
|
1136
|
-
epoch?: number | undefined;
|
|
1137
|
-
locator?: string | undefined;
|
|
1138
|
-
revision?: string | undefined;
|
|
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
|
-
*/
|
|
556
|
+
}, z.core.$strip>>;
|
|
1145
557
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1146
558
|
changedFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1147
559
|
path: z.ZodString;
|
|
1148
|
-
changeKind: z.
|
|
560
|
+
changeKind: z.ZodEnum<{
|
|
1149
561
|
readonly ADDED: "added";
|
|
1150
562
|
readonly MODIFIED: "modified";
|
|
1151
563
|
readonly DELETED: "deleted";
|
|
1152
564
|
}>;
|
|
1153
|
-
risk: z.ZodDefault<z.ZodArray<z.
|
|
565
|
+
risk: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1154
566
|
readonly AUTH: "auth";
|
|
1155
567
|
readonly PAYMENT: "payment";
|
|
1156
568
|
readonly DB: "db";
|
|
@@ -1159,21 +571,12 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1159
571
|
readonly SECRETS: "secrets";
|
|
1160
572
|
readonly DESTRUCTIVE: "destructive";
|
|
1161
573
|
readonly EXTERNAL: "external";
|
|
1162
|
-
}
|
|
1163
|
-
},
|
|
1164
|
-
path: string;
|
|
1165
|
-
changeKind: "added" | "modified" | "deleted";
|
|
1166
|
-
risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
|
|
1167
|
-
}, {
|
|
1168
|
-
path: string;
|
|
1169
|
-
changeKind: "added" | "modified" | "deleted";
|
|
1170
|
-
risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
|
|
1171
|
-
}>, "many">>;
|
|
574
|
+
}>>>;
|
|
575
|
+
}, z.core.$strip>>>;
|
|
1172
576
|
flows: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1173
577
|
name: z.ZodString;
|
|
1174
|
-
/** The saved flow this replayed copy was generated from — see the flow file's `template`. */
|
|
1175
578
|
template: z.ZodOptional<z.ZodString>;
|
|
1176
|
-
status: z.
|
|
579
|
+
status: z.ZodEnum<{
|
|
1177
580
|
readonly PASS: "pass";
|
|
1178
581
|
readonly FAIL: "fail";
|
|
1179
582
|
readonly SKIPPED: "skipped";
|
|
@@ -1186,18 +589,9 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1186
589
|
from: z.ZodString;
|
|
1187
590
|
to: z.ZodString;
|
|
1188
591
|
consequenceVerified: z.ZodBoolean;
|
|
1189
|
-
},
|
|
1190
|
-
from: string;
|
|
1191
|
-
to: string;
|
|
1192
|
-
consequenceVerified: boolean;
|
|
1193
|
-
}, {
|
|
1194
|
-
from: string;
|
|
1195
|
-
to: string;
|
|
1196
|
-
consequenceVerified: boolean;
|
|
1197
|
-
}>>;
|
|
592
|
+
}, z.core.$strip>>;
|
|
1198
593
|
evidenceRef: z.ZodOptional<z.ZodString>;
|
|
1199
594
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
1200
|
-
/** Each step's result and page — see RUN_STEP_RESULTS_MAX. */
|
|
1201
595
|
stepResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1202
596
|
step: z.ZodNumber;
|
|
1203
597
|
anchor: z.ZodString;
|
|
@@ -1206,159 +600,26 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1206
600
|
endPage: z.ZodOptional<z.ZodString>;
|
|
1207
601
|
consequence: z.ZodOptional<z.ZodString>;
|
|
1208
602
|
error: z.ZodOptional<z.ZodString>;
|
|
1209
|
-
/** The drift's reason kind, when the step drifted. */
|
|
1210
603
|
drift: z.ZodOptional<z.ZodString>;
|
|
1211
|
-
/** What the page looked like when this step's outcome was decided. */
|
|
1212
604
|
screenshot: z.ZodOptional<z.ZodObject<{
|
|
1213
605
|
file: z.ZodString;
|
|
1214
|
-
source: z.
|
|
606
|
+
source: z.ZodEnum<{
|
|
1215
607
|
readonly BROWSER: "browser";
|
|
1216
608
|
readonly RENDERED: "rendered";
|
|
1217
609
|
}>;
|
|
1218
610
|
width: z.ZodNumber;
|
|
1219
611
|
height: z.ZodNumber;
|
|
1220
612
|
sha256: z.ZodString;
|
|
1221
|
-
},
|
|
1222
|
-
|
|
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
|
-
}>>;
|
|
1234
|
-
}, "strip", z.ZodTypeAny, {
|
|
1235
|
-
ok: boolean;
|
|
1236
|
-
step: number;
|
|
1237
|
-
anchor: string;
|
|
1238
|
-
drift?: string | undefined;
|
|
1239
|
-
error?: string | undefined;
|
|
1240
|
-
page?: string | undefined;
|
|
1241
|
-
endPage?: string | undefined;
|
|
1242
|
-
consequence?: string | undefined;
|
|
1243
|
-
screenshot?: {
|
|
1244
|
-
file: string;
|
|
1245
|
-
source: "browser" | "rendered";
|
|
1246
|
-
width: number;
|
|
1247
|
-
height: number;
|
|
1248
|
-
sha256: string;
|
|
1249
|
-
} | undefined;
|
|
1250
|
-
}, {
|
|
1251
|
-
ok: boolean;
|
|
1252
|
-
step: number;
|
|
1253
|
-
anchor: string;
|
|
1254
|
-
drift?: string | undefined;
|
|
1255
|
-
error?: string | undefined;
|
|
1256
|
-
page?: string | undefined;
|
|
1257
|
-
endPage?: string | undefined;
|
|
1258
|
-
consequence?: string | undefined;
|
|
1259
|
-
screenshot?: {
|
|
1260
|
-
file: string;
|
|
1261
|
-
source: "browser" | "rendered";
|
|
1262
|
-
width: number;
|
|
1263
|
-
height: number;
|
|
1264
|
-
sha256: string;
|
|
1265
|
-
} | undefined;
|
|
1266
|
-
}>, "many">>;
|
|
1267
|
-
/** The flow as recorded, when it fits in RUN_RECORDING_MAX_BYTES. */
|
|
613
|
+
}, z.core.$strip>>;
|
|
614
|
+
}, z.core.$strip>>>;
|
|
1268
615
|
recording: z.ZodOptional<z.ZodObject<{
|
|
1269
616
|
startPath: z.ZodOptional<z.ZodString>;
|
|
1270
|
-
steps: z.ZodArray<z.ZodUnknown
|
|
1271
|
-
},
|
|
1272
|
-
steps: unknown[];
|
|
1273
|
-
startPath?: string | undefined;
|
|
1274
|
-
}, {
|
|
1275
|
-
steps: unknown[];
|
|
1276
|
-
startPath?: string | undefined;
|
|
1277
|
-
}>>;
|
|
1278
|
-
/** True when the recording was too large to carry. */
|
|
617
|
+
steps: z.ZodArray<z.ZodUnknown>;
|
|
618
|
+
}, z.core.$strip>>;
|
|
1279
619
|
recordingOmitted: z.ZodOptional<z.ZodBoolean>;
|
|
1280
|
-
},
|
|
1281
|
-
status: "pass" | "fail" | "healed" | "skipped";
|
|
1282
|
-
steps: number;
|
|
1283
|
-
name: string;
|
|
1284
|
-
durationMs: number;
|
|
1285
|
-
recording?: {
|
|
1286
|
-
steps: unknown[];
|
|
1287
|
-
startPath?: string | undefined;
|
|
1288
|
-
} | undefined;
|
|
1289
|
-
healed?: {
|
|
1290
|
-
from: string;
|
|
1291
|
-
to: string;
|
|
1292
|
-
consequenceVerified: boolean;
|
|
1293
|
-
} | undefined;
|
|
1294
|
-
template?: string | undefined;
|
|
1295
|
-
oracle?: string | undefined;
|
|
1296
|
-
evidenceRef?: string | undefined;
|
|
1297
|
-
failureReason?: string | undefined;
|
|
1298
|
-
stepResults?: {
|
|
1299
|
-
ok: boolean;
|
|
1300
|
-
step: number;
|
|
1301
|
-
anchor: string;
|
|
1302
|
-
drift?: string | undefined;
|
|
1303
|
-
error?: string | undefined;
|
|
1304
|
-
page?: string | undefined;
|
|
1305
|
-
endPage?: string | undefined;
|
|
1306
|
-
consequence?: string | undefined;
|
|
1307
|
-
screenshot?: {
|
|
1308
|
-
file: string;
|
|
1309
|
-
source: "browser" | "rendered";
|
|
1310
|
-
width: number;
|
|
1311
|
-
height: number;
|
|
1312
|
-
sha256: string;
|
|
1313
|
-
} | undefined;
|
|
1314
|
-
}[] | undefined;
|
|
1315
|
-
recordingOmitted?: boolean | undefined;
|
|
1316
|
-
}, {
|
|
1317
|
-
status: "pass" | "fail" | "healed" | "skipped";
|
|
1318
|
-
steps: number;
|
|
1319
|
-
name: string;
|
|
1320
|
-
durationMs: number;
|
|
1321
|
-
recording?: {
|
|
1322
|
-
steps: unknown[];
|
|
1323
|
-
startPath?: string | undefined;
|
|
1324
|
-
} | undefined;
|
|
1325
|
-
healed?: {
|
|
1326
|
-
from: string;
|
|
1327
|
-
to: string;
|
|
1328
|
-
consequenceVerified: boolean;
|
|
1329
|
-
} | undefined;
|
|
1330
|
-
template?: string | undefined;
|
|
1331
|
-
oracle?: string | undefined;
|
|
1332
|
-
evidenceRef?: string | undefined;
|
|
1333
|
-
failureReason?: string | undefined;
|
|
1334
|
-
stepResults?: {
|
|
1335
|
-
ok: boolean;
|
|
1336
|
-
step: number;
|
|
1337
|
-
anchor: string;
|
|
1338
|
-
drift?: string | undefined;
|
|
1339
|
-
error?: string | undefined;
|
|
1340
|
-
page?: string | undefined;
|
|
1341
|
-
endPage?: string | undefined;
|
|
1342
|
-
consequence?: string | undefined;
|
|
1343
|
-
screenshot?: {
|
|
1344
|
-
file: string;
|
|
1345
|
-
source: "browser" | "rendered";
|
|
1346
|
-
width: number;
|
|
1347
|
-
height: number;
|
|
1348
|
-
sha256: string;
|
|
1349
|
-
} | undefined;
|
|
1350
|
-
}[] | undefined;
|
|
1351
|
-
recordingOmitted?: boolean | undefined;
|
|
1352
|
-
}>, "many">>;
|
|
620
|
+
}, z.core.$strip>>>;
|
|
1353
621
|
checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1354
|
-
|
|
1355
|
-
* Which source of truth answering this claim required.
|
|
1356
|
-
*
|
|
1357
|
-
* Optional, because a check folded from a journal written before the kind was recorded has none,
|
|
1358
|
-
* and the only alternatives are refusing the whole run or filling in a kind nobody observed. An
|
|
1359
|
-
* absent field says nobody wrote it down; a present one is what the predicate actually read.
|
|
1360
|
-
*/
|
|
1361
|
-
kind: z.ZodEffects<z.ZodOptional<z.ZodNativeEnum<{
|
|
622
|
+
kind: z.ZodPreprocess<z.ZodOptional<z.ZodEnum<{
|
|
1362
623
|
readonly ELEMENT: "element";
|
|
1363
624
|
readonly TEXT: "text";
|
|
1364
625
|
readonly SIGNAL: "signal";
|
|
@@ -1372,138 +633,40 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1372
633
|
readonly ALL_OF: "allOf";
|
|
1373
634
|
readonly ANY_OF: "anyOf";
|
|
1374
635
|
readonly NOT: "not";
|
|
1375
|
-
}>>,
|
|
636
|
+
}>>, unknown>;
|
|
1376
637
|
predicate: z.ZodString;
|
|
1377
|
-
status: z.
|
|
638
|
+
status: z.ZodPreprocess<z.ZodEnum<{
|
|
1378
639
|
readonly YES: "yes";
|
|
1379
640
|
readonly NO: "no";
|
|
1380
641
|
readonly UNKNOWN: "unknown";
|
|
1381
642
|
readonly NO_FAULT: "no-fault";
|
|
1382
|
-
}>,
|
|
643
|
+
}>, unknown>;
|
|
1383
644
|
evidence: z.ZodOptional<z.ZodUnknown>;
|
|
1384
|
-
/**
|
|
1385
|
-
* Was this claim written down BEFORE the action, or after it?
|
|
1386
|
-
*
|
|
1387
|
-
* The difference between a check and a rationalisation. Afterwards, anything that happened can be
|
|
1388
|
-
* described as what you meant; a claim made in advance can only be met or missed.
|
|
1389
|
-
*
|
|
1390
|
-
* Optional, and absence is not `false`. `false` says the claim came afterwards. Absent says nobody
|
|
1391
|
-
* recorded which, and those are different facts about the evidence.
|
|
1392
|
-
*/
|
|
1393
645
|
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
646
|
expected: z.ZodOptional<z.ZodString>;
|
|
1400
647
|
observed: z.ZodOptional<z.ZodString>;
|
|
1401
|
-
/**
|
|
1402
|
-
* What kind of evidence bought this answer.
|
|
1403
|
-
*
|
|
1404
|
-
* A green paid for with "something matching was on screen" is not the same green as one paid for
|
|
1405
|
-
* with "the request went out", and a report that flattens them lets the cheap one pass for the
|
|
1406
|
-
* dear one. Free-form because the grades belong to whoever produced the verdict.
|
|
1407
|
-
*/
|
|
1408
648
|
grade: z.ZodOptional<z.ZodString>;
|
|
1409
|
-
|
|
1410
|
-
* What could not be seen while this was being checked.
|
|
1411
|
-
*
|
|
1412
|
-
* The property with no prior art: every other test report in existence is silent about its own
|
|
1413
|
-
* blind spots. An empty list means nothing was hidden; absence means nobody looked.
|
|
1414
|
-
*/
|
|
1415
|
-
couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1416
|
-
/**
|
|
1417
|
-
* Why the verdict came out this way, in the engine's vocabulary.
|
|
1418
|
-
*
|
|
1419
|
-
* Carried so a reader -- and the fold that looks for late answers -- can tell an outcome that
|
|
1420
|
-
* has not arrived from a capture that could not be read. Both are `unknown`, and only the
|
|
1421
|
-
* first is a question that waiting can settle.
|
|
1422
|
-
*/
|
|
649
|
+
couldNotSee: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1423
650
|
reason: z.ZodOptional<z.ZodString>;
|
|
1424
|
-
/** This check's own name, so a later verdict can cite it. See revision.ts. */
|
|
1425
651
|
checkId: z.ZodOptional<z.ZodString>;
|
|
1426
|
-
/** The journal action that produced it, kept on this machine to pair it with its screenshot. */
|
|
1427
652
|
actionId: z.ZodOptional<z.ZodString>;
|
|
1428
|
-
/** The declared intent this check was taken for, by id: what it proves, named rather than timed. */
|
|
1429
653
|
intent: z.ZodOptional<z.ZodString>;
|
|
1430
|
-
|
|
654
|
+
intentDerived: z.ZodOptional<z.ZodBoolean>;
|
|
655
|
+
failedPart: z.ZodOptional<z.ZodNumber>;
|
|
1431
656
|
screenshot: z.ZodOptional<z.ZodObject<{
|
|
1432
657
|
file: z.ZodString;
|
|
1433
|
-
source: z.
|
|
658
|
+
source: z.ZodEnum<{
|
|
1434
659
|
readonly BROWSER: "browser";
|
|
1435
660
|
readonly RENDERED: "rendered";
|
|
1436
661
|
}>;
|
|
1437
662
|
width: z.ZodNumber;
|
|
1438
663
|
height: z.ZodNumber;
|
|
1439
664
|
sha256: z.ZodString;
|
|
1440
|
-
},
|
|
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
|
-
}>>;
|
|
1453
|
-
/**
|
|
1454
|
-
* The earlier check this one corrects, as `<runId>#<checkId>`.
|
|
1455
|
-
*
|
|
1456
|
-
* Present only on a correction, and the check it names is NOT edited: both stand, so a reader
|
|
1457
|
-
* can see that the first answer was given, when it changed, and why.
|
|
1458
|
-
*/
|
|
665
|
+
}, z.core.$strip>>;
|
|
1459
666
|
supersedes: z.ZodOptional<z.ZodString>;
|
|
1460
|
-
},
|
|
1461
|
-
status: "yes" | "no" | "unknown" | "no-fault";
|
|
1462
|
-
predicate: string;
|
|
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;
|
|
1475
|
-
evidence?: unknown;
|
|
1476
|
-
declaredBeforeActing?: boolean | undefined;
|
|
1477
|
-
observed?: string | undefined;
|
|
1478
|
-
grade?: string | undefined;
|
|
1479
|
-
couldNotSee?: string[] | undefined;
|
|
1480
|
-
reason?: string | undefined;
|
|
1481
|
-
supersedes?: string | undefined;
|
|
1482
|
-
}, {
|
|
1483
|
-
predicate: string;
|
|
1484
|
-
kind?: unknown;
|
|
1485
|
-
intent?: string | undefined;
|
|
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;
|
|
1497
|
-
evidence?: unknown;
|
|
1498
|
-
declaredBeforeActing?: boolean | undefined;
|
|
1499
|
-
observed?: string | undefined;
|
|
1500
|
-
grade?: string | undefined;
|
|
1501
|
-
couldNotSee?: string[] | undefined;
|
|
1502
|
-
reason?: string | undefined;
|
|
1503
|
-
supersedes?: string | undefined;
|
|
1504
|
-
}>, "many">>;
|
|
667
|
+
}, z.core.$strip>>>;
|
|
1505
668
|
risks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1506
|
-
surface: z.
|
|
669
|
+
surface: z.ZodEnum<{
|
|
1507
670
|
readonly AUTH: "auth";
|
|
1508
671
|
readonly PAYMENT: "payment";
|
|
1509
672
|
readonly DB: "db";
|
|
@@ -1513,7 +676,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1513
676
|
readonly DESTRUCTIVE: "destructive";
|
|
1514
677
|
readonly EXTERNAL: "external";
|
|
1515
678
|
}>;
|
|
1516
|
-
severity: z.
|
|
679
|
+
severity: z.ZodEnum<{
|
|
1517
680
|
readonly LOW: "low";
|
|
1518
681
|
readonly MEDIUM: "medium";
|
|
1519
682
|
readonly HIGH: "high";
|
|
@@ -1524,148 +687,34 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1524
687
|
file: z.ZodOptional<z.ZodString>;
|
|
1525
688
|
line: z.ZodOptional<z.ZodNumber>;
|
|
1526
689
|
network: z.ZodOptional<z.ZodString>;
|
|
1527
|
-
},
|
|
1528
|
-
network?: string | undefined;
|
|
1529
|
-
file?: string | undefined;
|
|
1530
|
-
line?: number | undefined;
|
|
1531
|
-
}, {
|
|
1532
|
-
network?: string | undefined;
|
|
1533
|
-
file?: string | undefined;
|
|
1534
|
-
line?: number | undefined;
|
|
1535
|
-
}>>;
|
|
690
|
+
}, z.core.$strip>>;
|
|
1536
691
|
gated: z.ZodDefault<z.ZodBoolean>;
|
|
1537
|
-
},
|
|
1538
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
1539
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
1540
|
-
detail: string;
|
|
1541
|
-
gated: boolean;
|
|
1542
|
-
evidence?: {
|
|
1543
|
-
network?: string | undefined;
|
|
1544
|
-
file?: string | undefined;
|
|
1545
|
-
line?: number | undefined;
|
|
1546
|
-
} | undefined;
|
|
1547
|
-
}, {
|
|
1548
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
1549
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
1550
|
-
detail: string;
|
|
1551
|
-
evidence?: {
|
|
1552
|
-
network?: string | undefined;
|
|
1553
|
-
file?: string | undefined;
|
|
1554
|
-
line?: number | undefined;
|
|
1555
|
-
} | undefined;
|
|
1556
|
-
gated?: boolean | undefined;
|
|
1557
|
-
}>, "many">>;
|
|
692
|
+
}, z.core.$strip>>>;
|
|
1558
693
|
evidence: z.ZodObject<{
|
|
1559
694
|
consoleErrors: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1560
695
|
level: z.ZodString;
|
|
1561
696
|
message: z.ZodString;
|
|
1562
697
|
at: z.ZodNumber;
|
|
1563
|
-
},
|
|
1564
|
-
at: number;
|
|
1565
|
-
message: string;
|
|
1566
|
-
level: string;
|
|
1567
|
-
}, {
|
|
1568
|
-
at: number;
|
|
1569
|
-
message: string;
|
|
1570
|
-
level: string;
|
|
1571
|
-
}>, "many">>;
|
|
698
|
+
}, z.core.$strip>>>;
|
|
1572
699
|
networkAnomalies: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1573
700
|
method: z.ZodString;
|
|
1574
701
|
url: z.ZodString;
|
|
1575
702
|
status: z.ZodOptional<z.ZodNumber>;
|
|
1576
703
|
issue: z.ZodString;
|
|
1577
|
-
},
|
|
1578
|
-
method: string;
|
|
1579
|
-
url: string;
|
|
1580
|
-
issue: string;
|
|
1581
|
-
status?: number | undefined;
|
|
1582
|
-
}, {
|
|
1583
|
-
method: string;
|
|
1584
|
-
url: string;
|
|
1585
|
-
issue: string;
|
|
1586
|
-
status?: number | undefined;
|
|
1587
|
-
}>, "many">>;
|
|
704
|
+
}, z.core.$strip>>>;
|
|
1588
705
|
stateAssertions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1589
706
|
store: z.ZodString;
|
|
1590
707
|
path: z.ZodString;
|
|
1591
|
-
expected: z.ZodUnknown
|
|
1592
|
-
actual: z.ZodUnknown
|
|
708
|
+
expected: z.ZodOptional<z.ZodUnknown>;
|
|
709
|
+
actual: z.ZodOptional<z.ZodUnknown>;
|
|
1593
710
|
ok: z.ZodBoolean;
|
|
1594
|
-
},
|
|
1595
|
-
ok: boolean;
|
|
1596
|
-
path: string;
|
|
1597
|
-
store: string;
|
|
1598
|
-
expected?: unknown;
|
|
1599
|
-
actual?: unknown;
|
|
1600
|
-
}, {
|
|
1601
|
-
ok: boolean;
|
|
1602
|
-
path: string;
|
|
1603
|
-
store: string;
|
|
1604
|
-
expected?: unknown;
|
|
1605
|
-
actual?: unknown;
|
|
1606
|
-
}>, "many">>;
|
|
711
|
+
}, z.core.$strip>>>;
|
|
1607
712
|
timeline: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1608
713
|
at: z.ZodNumber;
|
|
1609
714
|
kind: z.ZodString;
|
|
1610
715
|
summary: z.ZodString;
|
|
1611
|
-
},
|
|
1612
|
-
|
|
1613
|
-
at: number;
|
|
1614
|
-
summary: string;
|
|
1615
|
-
}, {
|
|
1616
|
-
kind: string;
|
|
1617
|
-
at: number;
|
|
1618
|
-
summary: string;
|
|
1619
|
-
}>, "many">>;
|
|
1620
|
-
}, "strip", z.ZodTypeAny, {
|
|
1621
|
-
consoleErrors: {
|
|
1622
|
-
at: number;
|
|
1623
|
-
message: string;
|
|
1624
|
-
level: string;
|
|
1625
|
-
}[];
|
|
1626
|
-
networkAnomalies: {
|
|
1627
|
-
method: string;
|
|
1628
|
-
url: string;
|
|
1629
|
-
issue: string;
|
|
1630
|
-
status?: number | undefined;
|
|
1631
|
-
}[];
|
|
1632
|
-
stateAssertions: {
|
|
1633
|
-
ok: boolean;
|
|
1634
|
-
path: string;
|
|
1635
|
-
store: string;
|
|
1636
|
-
expected?: unknown;
|
|
1637
|
-
actual?: unknown;
|
|
1638
|
-
}[];
|
|
1639
|
-
timeline: {
|
|
1640
|
-
kind: string;
|
|
1641
|
-
at: number;
|
|
1642
|
-
summary: string;
|
|
1643
|
-
}[];
|
|
1644
|
-
}, {
|
|
1645
|
-
consoleErrors?: {
|
|
1646
|
-
at: number;
|
|
1647
|
-
message: string;
|
|
1648
|
-
level: string;
|
|
1649
|
-
}[] | undefined;
|
|
1650
|
-
networkAnomalies?: {
|
|
1651
|
-
method: string;
|
|
1652
|
-
url: string;
|
|
1653
|
-
issue: string;
|
|
1654
|
-
status?: number | undefined;
|
|
1655
|
-
}[] | undefined;
|
|
1656
|
-
stateAssertions?: {
|
|
1657
|
-
ok: boolean;
|
|
1658
|
-
path: string;
|
|
1659
|
-
store: string;
|
|
1660
|
-
expected?: unknown;
|
|
1661
|
-
actual?: unknown;
|
|
1662
|
-
}[] | undefined;
|
|
1663
|
-
timeline?: {
|
|
1664
|
-
kind: string;
|
|
1665
|
-
at: number;
|
|
1666
|
-
summary: string;
|
|
1667
|
-
}[] | undefined;
|
|
1668
|
-
}>;
|
|
716
|
+
}, z.core.$strip>>>;
|
|
717
|
+
}, z.core.$strip>;
|
|
1669
718
|
repair: z.ZodOptional<z.ZodObject<{
|
|
1670
719
|
failurePackets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1671
720
|
flow: z.ZodOptional<z.ZodString>;
|
|
@@ -1676,114 +725,28 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1676
725
|
file: z.ZodString;
|
|
1677
726
|
line: z.ZodOptional<z.ZodNumber>;
|
|
1678
727
|
component: z.ZodOptional<z.ZodString>;
|
|
1679
|
-
},
|
|
1680
|
-
file: string;
|
|
1681
|
-
component?: string | undefined;
|
|
1682
|
-
line?: number | undefined;
|
|
1683
|
-
}, {
|
|
1684
|
-
file: string;
|
|
1685
|
-
component?: string | undefined;
|
|
1686
|
-
line?: number | undefined;
|
|
1687
|
-
}>>;
|
|
728
|
+
}, z.core.$strip>>;
|
|
1688
729
|
suggestedPrompt: z.ZodString;
|
|
1689
|
-
},
|
|
1690
|
-
|
|
1691
|
-
actual: string;
|
|
1692
|
-
suggestedPrompt: string;
|
|
1693
|
-
step?: number | undefined;
|
|
1694
|
-
flow?: string | undefined;
|
|
1695
|
-
sourceLocation?: {
|
|
1696
|
-
file: string;
|
|
1697
|
-
component?: string | undefined;
|
|
1698
|
-
line?: number | undefined;
|
|
1699
|
-
} | undefined;
|
|
1700
|
-
}, {
|
|
1701
|
-
expected: string;
|
|
1702
|
-
actual: string;
|
|
1703
|
-
suggestedPrompt: string;
|
|
1704
|
-
step?: number | undefined;
|
|
1705
|
-
flow?: string | undefined;
|
|
1706
|
-
sourceLocation?: {
|
|
1707
|
-
file: string;
|
|
1708
|
-
component?: string | undefined;
|
|
1709
|
-
line?: number | undefined;
|
|
1710
|
-
} | undefined;
|
|
1711
|
-
}>, "many">>;
|
|
1712
|
-
}, "strip", z.ZodTypeAny, {
|
|
1713
|
-
failurePackets: {
|
|
1714
|
-
expected: string;
|
|
1715
|
-
actual: string;
|
|
1716
|
-
suggestedPrompt: string;
|
|
1717
|
-
step?: number | undefined;
|
|
1718
|
-
flow?: string | undefined;
|
|
1719
|
-
sourceLocation?: {
|
|
1720
|
-
file: string;
|
|
1721
|
-
component?: string | undefined;
|
|
1722
|
-
line?: number | undefined;
|
|
1723
|
-
} | undefined;
|
|
1724
|
-
}[];
|
|
1725
|
-
}, {
|
|
1726
|
-
failurePackets?: {
|
|
1727
|
-
expected: string;
|
|
1728
|
-
actual: string;
|
|
1729
|
-
suggestedPrompt: string;
|
|
1730
|
-
step?: number | undefined;
|
|
1731
|
-
flow?: string | undefined;
|
|
1732
|
-
sourceLocation?: {
|
|
1733
|
-
file: string;
|
|
1734
|
-
component?: string | undefined;
|
|
1735
|
-
line?: number | undefined;
|
|
1736
|
-
} | undefined;
|
|
1737
|
-
}[] | undefined;
|
|
1738
|
-
}>>;
|
|
1739
|
-
/** What the page looked like after each action, assert and replayed step. Absent on older runs. */
|
|
730
|
+
}, z.core.$strip>>>;
|
|
731
|
+
}, z.core.$strip>>;
|
|
1740
732
|
screenshots: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1741
733
|
file: z.ZodString;
|
|
1742
|
-
source: z.
|
|
734
|
+
source: z.ZodEnum<{
|
|
1743
735
|
readonly BROWSER: "browser";
|
|
1744
736
|
readonly RENDERED: "rendered";
|
|
1745
737
|
}>;
|
|
1746
738
|
width: z.ZodNumber;
|
|
1747
739
|
height: z.ZodNumber;
|
|
1748
740
|
sha256: z.ZodString;
|
|
1749
|
-
} & {
|
|
1750
741
|
seq: z.ZodNumber;
|
|
1751
742
|
tool: z.ZodString;
|
|
1752
|
-
/** The flow step it belongs to, as `<flow>#<step>`, when it was taken during a replay. */
|
|
1753
743
|
step: z.ZodOptional<z.ZodString>;
|
|
1754
|
-
/** Taken for a call that produced a verdict — what lets the run pair it with its check. */
|
|
1755
744
|
verdict: z.ZodOptional<z.ZodBoolean>;
|
|
1756
|
-
/** The check this picture is of (see `RunCheck.checkId`), when it could be paired with one. */
|
|
1757
745
|
checkId: z.ZodOptional<z.ZodString>;
|
|
1758
|
-
/** The journal action it was taken for: how a run pairs it with its check (`RunCheck.actionId`). */
|
|
1759
746
|
actionId: z.ZodOptional<z.ZodString>;
|
|
1760
|
-
},
|
|
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">>;
|
|
747
|
+
}, z.core.$strip>>>;
|
|
1785
748
|
verdict: z.ZodObject<{
|
|
1786
|
-
status: z.
|
|
749
|
+
status: z.ZodEnum<{
|
|
1787
750
|
readonly PASS: "pass";
|
|
1788
751
|
readonly FAIL: "fail";
|
|
1789
752
|
readonly PARTIAL: "partial";
|
|
@@ -1798,137 +761,51 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1798
761
|
*/
|
|
1799
762
|
readonly UNKNOWN: "unknown";
|
|
1800
763
|
}>;
|
|
1801
|
-
reasons: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1802
|
-
confidence: z.
|
|
764
|
+
reasons: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
765
|
+
confidence: z.ZodEnum<{
|
|
1803
766
|
readonly HIGH: "high";
|
|
1804
767
|
readonly MEDIUM: "medium";
|
|
1805
768
|
readonly LOW: "low";
|
|
1806
769
|
}>;
|
|
1807
770
|
blockingRisks: z.ZodDefault<z.ZodNumber>;
|
|
1808
|
-
/**
|
|
1809
|
-
* Which check this verdict is about, so a later one can say it corrects this.
|
|
1810
|
-
*
|
|
1811
|
-
* Optional because a run's overall verdict is not about one check. A verdict with no check named
|
|
1812
|
-
* cannot be cited, and therefore cannot be corrected -- see revision.ts.
|
|
1813
|
-
*/
|
|
1814
771
|
checkId: z.ZodOptional<z.ZodString>;
|
|
1815
|
-
/**
|
|
1816
|
-
* The verdict this one replaces, written as `<runId>#<checkId>`.
|
|
1817
|
-
*
|
|
1818
|
-
* Present only on a correction. The verdict it names is NOT edited: it stays exactly as it was
|
|
1819
|
-
* given, and this is a second, later answer that cites it. Rewriting the first in place would
|
|
1820
|
-
* erase the fact that it was ever given, and "we always knew" is the shape of the problem this
|
|
1821
|
-
* whole system exists to prevent.
|
|
1822
|
-
*/
|
|
1823
772
|
supersedes: z.ZodOptional<z.ZodString>;
|
|
1824
|
-
},
|
|
1825
|
-
status: "pass" | "fail" | "unknown" | "partial";
|
|
1826
|
-
reasons: string[];
|
|
1827
|
-
confidence: "low" | "medium" | "high";
|
|
1828
|
-
blockingRisks: number;
|
|
1829
|
-
checkId?: string | undefined;
|
|
1830
|
-
supersedes?: string | undefined;
|
|
1831
|
-
}, {
|
|
1832
|
-
status: "pass" | "fail" | "unknown" | "partial";
|
|
1833
|
-
confidence: "low" | "medium" | "high";
|
|
1834
|
-
checkId?: string | undefined;
|
|
1835
|
-
supersedes?: string | undefined;
|
|
1836
|
-
reasons?: string[] | undefined;
|
|
1837
|
-
blockingRisks?: number | undefined;
|
|
1838
|
-
}>;
|
|
773
|
+
}, z.core.$strip>;
|
|
1839
774
|
signature: z.ZodOptional<z.ZodObject<{
|
|
1840
775
|
alg: z.ZodString;
|
|
1841
776
|
value: z.ZodString;
|
|
1842
777
|
signedAt: z.ZodNumber;
|
|
1843
|
-
},
|
|
1844
|
-
value: string;
|
|
1845
|
-
alg: string;
|
|
1846
|
-
signedAt: number;
|
|
1847
|
-
}, {
|
|
1848
|
-
value: string;
|
|
1849
|
-
alg: string;
|
|
1850
|
-
signedAt: number;
|
|
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
|
-
*/
|
|
778
|
+
}, z.core.$strip>>;
|
|
1856
779
|
disparity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1857
780
|
goal: z.ZodString;
|
|
1858
|
-
kind: z.
|
|
781
|
+
kind: z.ZodEnum<{
|
|
1859
782
|
readonly FINDABLE: "findable";
|
|
1860
783
|
readonly DISCOVERABILITY: "discoverability";
|
|
1861
784
|
readonly AGENT_ASSUMPTION: "agent_assumption";
|
|
1862
785
|
readonly DEFECT: "defect";
|
|
1863
786
|
}>;
|
|
1864
787
|
agent: z.ZodObject<{
|
|
1865
|
-
verified: z.
|
|
788
|
+
verified: z.ZodEnum<{
|
|
1866
789
|
readonly YES: "yes";
|
|
1867
790
|
readonly NO: "no";
|
|
1868
791
|
readonly UNKNOWN: "unknown";
|
|
1869
792
|
readonly NO_FAULT: "no-fault";
|
|
1870
793
|
}>;
|
|
1871
794
|
claim: z.ZodString;
|
|
1872
|
-
},
|
|
1873
|
-
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1874
|
-
claim: string;
|
|
1875
|
-
}, {
|
|
1876
|
-
verified: "yes" | "no" | "unknown" | "no-fault";
|
|
1877
|
-
claim: string;
|
|
1878
|
-
}>;
|
|
795
|
+
}, z.core.$strip>;
|
|
1879
796
|
harness: z.ZodObject<{
|
|
1880
|
-
verified: z.
|
|
797
|
+
verified: z.ZodEnum<{
|
|
1881
798
|
readonly YES: "yes";
|
|
1882
799
|
readonly NO: "no";
|
|
1883
800
|
readonly UNKNOWN: "unknown";
|
|
1884
801
|
readonly NO_FAULT: "no-fault";
|
|
1885
802
|
}>;
|
|
1886
803
|
found: z.ZodBoolean;
|
|
1887
|
-
searched: z.ZodArray<z.ZodString
|
|
804
|
+
searched: z.ZodArray<z.ZodString>;
|
|
1888
805
|
gaveUpAt: z.ZodOptional<z.ZodString>;
|
|
1889
|
-
},
|
|
1890
|
-
|
|
1891
|
-
|
|
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<{
|
|
806
|
+
}, z.core.$strip>;
|
|
807
|
+
}, z.core.$strip>>>;
|
|
808
|
+
agentClaim: z.ZodOptional<z.ZodEnum<{
|
|
1932
809
|
readonly PASS: "pass";
|
|
1933
810
|
readonly FAIL: "fail";
|
|
1934
811
|
readonly PARTIAL: "partial";
|
|
@@ -1943,383 +820,7 @@ export declare const ReticleVerificationRunSchema: z.ZodObject<{
|
|
|
1943
820
|
*/
|
|
1944
821
|
readonly UNKNOWN: "unknown";
|
|
1945
822
|
}>>;
|
|
1946
|
-
},
|
|
1947
|
-
flows: {
|
|
1948
|
-
status: "pass" | "fail" | "healed" | "skipped";
|
|
1949
|
-
steps: number;
|
|
1950
|
-
name: string;
|
|
1951
|
-
durationMs: number;
|
|
1952
|
-
recording?: {
|
|
1953
|
-
steps: unknown[];
|
|
1954
|
-
startPath?: string | undefined;
|
|
1955
|
-
} | undefined;
|
|
1956
|
-
healed?: {
|
|
1957
|
-
from: string;
|
|
1958
|
-
to: string;
|
|
1959
|
-
consequenceVerified: boolean;
|
|
1960
|
-
} | undefined;
|
|
1961
|
-
template?: string | undefined;
|
|
1962
|
-
oracle?: string | undefined;
|
|
1963
|
-
evidenceRef?: string | undefined;
|
|
1964
|
-
failureReason?: string | undefined;
|
|
1965
|
-
stepResults?: {
|
|
1966
|
-
ok: boolean;
|
|
1967
|
-
step: number;
|
|
1968
|
-
anchor: string;
|
|
1969
|
-
drift?: string | undefined;
|
|
1970
|
-
error?: string | undefined;
|
|
1971
|
-
page?: string | undefined;
|
|
1972
|
-
endPage?: string | undefined;
|
|
1973
|
-
consequence?: string | undefined;
|
|
1974
|
-
screenshot?: {
|
|
1975
|
-
file: string;
|
|
1976
|
-
source: "browser" | "rendered";
|
|
1977
|
-
width: number;
|
|
1978
|
-
height: number;
|
|
1979
|
-
sha256: string;
|
|
1980
|
-
} | undefined;
|
|
1981
|
-
}[] | undefined;
|
|
1982
|
-
recordingOmitted?: boolean | undefined;
|
|
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
|
-
};
|
|
1997
|
-
durationMs: number;
|
|
1998
|
-
evidence: {
|
|
1999
|
-
consoleErrors: {
|
|
2000
|
-
at: number;
|
|
2001
|
-
message: string;
|
|
2002
|
-
level: string;
|
|
2003
|
-
}[];
|
|
2004
|
-
networkAnomalies: {
|
|
2005
|
-
method: string;
|
|
2006
|
-
url: string;
|
|
2007
|
-
issue: string;
|
|
2008
|
-
status?: number | undefined;
|
|
2009
|
-
}[];
|
|
2010
|
-
stateAssertions: {
|
|
2011
|
-
ok: boolean;
|
|
2012
|
-
path: string;
|
|
2013
|
-
store: string;
|
|
2014
|
-
expected?: unknown;
|
|
2015
|
-
actual?: unknown;
|
|
2016
|
-
}[];
|
|
2017
|
-
timeline: {
|
|
2018
|
-
kind: string;
|
|
2019
|
-
at: number;
|
|
2020
|
-
summary: string;
|
|
2021
|
-
}[];
|
|
2022
|
-
};
|
|
2023
|
-
schemaVersion: 1 | 2 | 3;
|
|
2024
|
-
runId: string & z.BRAND<"RunId">;
|
|
2025
|
-
createdAt: number;
|
|
2026
|
-
profile: "dev" | "prod-preview";
|
|
2027
|
-
project: {
|
|
2028
|
-
name: string;
|
|
2029
|
-
framework: "other" | "react" | "next" | "vite";
|
|
2030
|
-
commit?: string | undefined;
|
|
2031
|
-
env?: "ci" | "preview" | "local" | undefined;
|
|
2032
|
-
previewUrl?: string | undefined;
|
|
2033
|
-
};
|
|
2034
|
-
trigger: {
|
|
2035
|
-
kind: "manual" | "edit" | "ci" | "oem";
|
|
2036
|
-
diffRef?: string | undefined;
|
|
2037
|
-
note?: string | undefined;
|
|
2038
|
-
};
|
|
2039
|
-
changedFiles: {
|
|
2040
|
-
path: string;
|
|
2041
|
-
changeKind: "added" | "modified" | "deleted";
|
|
2042
|
-
risk: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[];
|
|
2043
|
-
}[];
|
|
2044
|
-
checks: {
|
|
2045
|
-
status: "yes" | "no" | "unknown" | "no-fault";
|
|
2046
|
-
predicate: string;
|
|
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;
|
|
2059
|
-
evidence?: unknown;
|
|
2060
|
-
declaredBeforeActing?: boolean | undefined;
|
|
2061
|
-
observed?: string | undefined;
|
|
2062
|
-
grade?: string | undefined;
|
|
2063
|
-
couldNotSee?: string[] | undefined;
|
|
2064
|
-
reason?: string | undefined;
|
|
2065
|
-
supersedes?: string | undefined;
|
|
2066
|
-
}[];
|
|
2067
|
-
risks: {
|
|
2068
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
2069
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
2070
|
-
detail: string;
|
|
2071
|
-
gated: boolean;
|
|
2072
|
-
evidence?: {
|
|
2073
|
-
network?: string | undefined;
|
|
2074
|
-
file?: string | undefined;
|
|
2075
|
-
line?: number | undefined;
|
|
2076
|
-
} | undefined;
|
|
2077
|
-
}[];
|
|
2078
|
-
editEpoch?: number | undefined;
|
|
2079
|
-
subject?: {
|
|
2080
|
-
surface: string;
|
|
2081
|
-
instance: string;
|
|
2082
|
-
epoch?: number | undefined;
|
|
2083
|
-
locator?: string | undefined;
|
|
2084
|
-
revision?: string | undefined;
|
|
2085
|
-
} | undefined;
|
|
2086
|
-
context?: Record<string, unknown> | undefined;
|
|
2087
|
-
repair?: {
|
|
2088
|
-
failurePackets: {
|
|
2089
|
-
expected: string;
|
|
2090
|
-
actual: string;
|
|
2091
|
-
suggestedPrompt: string;
|
|
2092
|
-
step?: number | undefined;
|
|
2093
|
-
flow?: string | undefined;
|
|
2094
|
-
sourceLocation?: {
|
|
2095
|
-
file: string;
|
|
2096
|
-
component?: string | undefined;
|
|
2097
|
-
line?: number | undefined;
|
|
2098
|
-
} | undefined;
|
|
2099
|
-
}[];
|
|
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;
|
|
2114
|
-
signature?: {
|
|
2115
|
-
value: string;
|
|
2116
|
-
alg: string;
|
|
2117
|
-
signedAt: number;
|
|
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;
|
|
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
|
-
};
|
|
2148
|
-
durationMs: number;
|
|
2149
|
-
evidence: {
|
|
2150
|
-
consoleErrors?: {
|
|
2151
|
-
at: number;
|
|
2152
|
-
message: string;
|
|
2153
|
-
level: string;
|
|
2154
|
-
}[] | undefined;
|
|
2155
|
-
networkAnomalies?: {
|
|
2156
|
-
method: string;
|
|
2157
|
-
url: string;
|
|
2158
|
-
issue: string;
|
|
2159
|
-
status?: number | undefined;
|
|
2160
|
-
}[] | undefined;
|
|
2161
|
-
stateAssertions?: {
|
|
2162
|
-
ok: boolean;
|
|
2163
|
-
path: string;
|
|
2164
|
-
store: string;
|
|
2165
|
-
expected?: unknown;
|
|
2166
|
-
actual?: unknown;
|
|
2167
|
-
}[] | undefined;
|
|
2168
|
-
timeline?: {
|
|
2169
|
-
kind: string;
|
|
2170
|
-
at: number;
|
|
2171
|
-
summary: string;
|
|
2172
|
-
}[] | undefined;
|
|
2173
|
-
};
|
|
2174
|
-
schemaVersion: 1 | 2 | 3;
|
|
2175
|
-
runId: string;
|
|
2176
|
-
createdAt: number;
|
|
2177
|
-
profile: "dev" | "prod-preview";
|
|
2178
|
-
project: {
|
|
2179
|
-
name: string;
|
|
2180
|
-
framework: "other" | "react" | "next" | "vite";
|
|
2181
|
-
commit?: string | undefined;
|
|
2182
|
-
env?: "ci" | "preview" | "local" | undefined;
|
|
2183
|
-
previewUrl?: string | undefined;
|
|
2184
|
-
};
|
|
2185
|
-
trigger: {
|
|
2186
|
-
kind: "manual" | "edit" | "ci" | "oem";
|
|
2187
|
-
diffRef?: string | undefined;
|
|
2188
|
-
note?: string | undefined;
|
|
2189
|
-
};
|
|
2190
|
-
flows?: {
|
|
2191
|
-
status: "pass" | "fail" | "healed" | "skipped";
|
|
2192
|
-
steps: number;
|
|
2193
|
-
name: string;
|
|
2194
|
-
durationMs: number;
|
|
2195
|
-
recording?: {
|
|
2196
|
-
steps: unknown[];
|
|
2197
|
-
startPath?: string | undefined;
|
|
2198
|
-
} | undefined;
|
|
2199
|
-
healed?: {
|
|
2200
|
-
from: string;
|
|
2201
|
-
to: string;
|
|
2202
|
-
consequenceVerified: boolean;
|
|
2203
|
-
} | undefined;
|
|
2204
|
-
template?: string | undefined;
|
|
2205
|
-
oracle?: string | undefined;
|
|
2206
|
-
evidenceRef?: string | undefined;
|
|
2207
|
-
failureReason?: string | undefined;
|
|
2208
|
-
stepResults?: {
|
|
2209
|
-
ok: boolean;
|
|
2210
|
-
step: number;
|
|
2211
|
-
anchor: string;
|
|
2212
|
-
drift?: string | undefined;
|
|
2213
|
-
error?: string | undefined;
|
|
2214
|
-
page?: string | undefined;
|
|
2215
|
-
endPage?: string | undefined;
|
|
2216
|
-
consequence?: string | undefined;
|
|
2217
|
-
screenshot?: {
|
|
2218
|
-
file: string;
|
|
2219
|
-
source: "browser" | "rendered";
|
|
2220
|
-
width: number;
|
|
2221
|
-
height: number;
|
|
2222
|
-
sha256: string;
|
|
2223
|
-
} | undefined;
|
|
2224
|
-
}[] | undefined;
|
|
2225
|
-
recordingOmitted?: boolean | undefined;
|
|
2226
|
-
}[] | undefined;
|
|
2227
|
-
editEpoch?: number | undefined;
|
|
2228
|
-
subject?: {
|
|
2229
|
-
surface: string;
|
|
2230
|
-
instance: string;
|
|
2231
|
-
epoch?: number | undefined;
|
|
2232
|
-
locator?: string | undefined;
|
|
2233
|
-
revision?: string | undefined;
|
|
2234
|
-
} | undefined;
|
|
2235
|
-
context?: Record<string, unknown> | undefined;
|
|
2236
|
-
changedFiles?: {
|
|
2237
|
-
path: string;
|
|
2238
|
-
changeKind: "added" | "modified" | "deleted";
|
|
2239
|
-
risk?: ("auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external")[] | undefined;
|
|
2240
|
-
}[] | undefined;
|
|
2241
|
-
checks?: {
|
|
2242
|
-
predicate: string;
|
|
2243
|
-
kind?: unknown;
|
|
2244
|
-
intent?: string | undefined;
|
|
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;
|
|
2256
|
-
evidence?: unknown;
|
|
2257
|
-
declaredBeforeActing?: boolean | undefined;
|
|
2258
|
-
observed?: string | undefined;
|
|
2259
|
-
grade?: string | undefined;
|
|
2260
|
-
couldNotSee?: string[] | undefined;
|
|
2261
|
-
reason?: string | undefined;
|
|
2262
|
-
supersedes?: string | undefined;
|
|
2263
|
-
}[] | undefined;
|
|
2264
|
-
risks?: {
|
|
2265
|
-
surface: "auth" | "payment" | "db" | "migration" | "rls" | "secrets" | "destructive" | "external";
|
|
2266
|
-
severity: "low" | "medium" | "high" | "critical";
|
|
2267
|
-
detail: string;
|
|
2268
|
-
evidence?: {
|
|
2269
|
-
network?: string | undefined;
|
|
2270
|
-
file?: string | undefined;
|
|
2271
|
-
line?: number | undefined;
|
|
2272
|
-
} | undefined;
|
|
2273
|
-
gated?: boolean | undefined;
|
|
2274
|
-
}[] | undefined;
|
|
2275
|
-
repair?: {
|
|
2276
|
-
failurePackets?: {
|
|
2277
|
-
expected: string;
|
|
2278
|
-
actual: string;
|
|
2279
|
-
suggestedPrompt: string;
|
|
2280
|
-
step?: number | undefined;
|
|
2281
|
-
flow?: string | undefined;
|
|
2282
|
-
sourceLocation?: {
|
|
2283
|
-
file: string;
|
|
2284
|
-
component?: string | undefined;
|
|
2285
|
-
line?: number | undefined;
|
|
2286
|
-
} | undefined;
|
|
2287
|
-
}[] | undefined;
|
|
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;
|
|
2302
|
-
signature?: {
|
|
2303
|
-
value: string;
|
|
2304
|
-
alg: string;
|
|
2305
|
-
signedAt: number;
|
|
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;
|
|
2322
|
-
}>;
|
|
823
|
+
}, z.core.$strip>;
|
|
2323
824
|
export type ReticleVerificationRun = z.infer<typeof ReticleVerificationRunSchema>;
|
|
2324
825
|
export type VerificationEvidence = z.infer<typeof VerificationEvidenceSchema>;
|
|
2325
826
|
export type RunSignature = z.infer<typeof RunSignatureSchema>;
|